do_action( 'um_before_render_dynamic_modal_content', $act_id )
Fires before rendering dynamic content inside the modal window.
Parameters:
| Name | Type | Description |
|---|---|---|
$act_id |
string | Dynamic content action. |
- Since:
- 2.14.0
- Source:
Example
Doing some code before rendering dynamic modal content with $act_id === 'email_confirmation'.
function um_before_render_dynamic_modal_content( $act_id ) {
if ( 'email_confirmation' === $act_id ) {
// your code here
}
}
add_action( 'um_before_render_dynamic_modal_content', 'um_before_render_dynamic_modal_content' );