Action: um_before_form

do_action( 'um_before_form', $args, $form_id )

Fires before UM Form content.

Parameters:
Name Type Description
$args array

UM Form shortcode arguments.

$form_id int

UM Form ID. Since 2.14.0

Since:
  • 2.14.0 Added $form_id
Source:
Example

Make any custom action before UM form.

function my_before_form( $args, $form_id ) {
    // your code here
}
add_action( 'um_before_form', 'my_before_form', 10, 2 );