Action: um_admin_ajax_modal_content__hook_{$act_id}

do_action( 'um_admin_ajax_modal_content__hook_{$act_id}' )

Fires for integration on AJAX popup admin builder modal content.

Note: $act_id data-dynamic-content attribute value. Modal action.

Since:
  • 1.3.x
Deprecated:
  • Partially deprecated since 2.6.4. Use common 'um_admin_ajax_modal_content__hook' and pass `$act_id` as callback attribute.
Source:
To Do:
  • Fully deprecate since 2.7.0
Example

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

function my_custom_um_admin_ajax_modal_content__hook_user_info() {
    // Your HTML is here for `user_info` modal
}
add_action( 'um_admin_ajax_modal_content__hook_user_info', 'my_custom_um_admin_ajax_modal_content__hook_user_info' );