Action: um_admin_ajax_modal_content__hook

do_action( 'um_admin_ajax_modal_content__hook', $act_id )

Fires for integration on AJAX popup admin builder modal content.

Parameters:
Name Type Description
$act_id string

data-dynamic-content attribute value. Modal action.

Since:
  • 1.3.x
Source:
Example

Pass HTML to the custom UM modal with data-dynamic-content="user_info".

function my_custom_um_admin_ajax_modal_content__hook( $act_id ) {
    if ( 'user_info' === $act_id ) {
        // Your HTML is here
    }
}
add_action( 'um_admin_ajax_modal_content__hook', 'my_custom_um_admin_ajax_modal_content__hook' );