Action: um_before_submit_form_post

do_action( 'um_before_submit_form_post', $post, $this )

Fires before UM login, registration or profile form submission.

Parameters:
Name Type Description
$post array

$_POST submission array. Deprecated since 2.0.

$this object

UM()->form() class instance. Since 2.6.7

Since:
  • 1.3.x
Source:
Example

Make any custom action before UM login, registration or profile form submission.

function my_custom_before_submit_form_post( $um_form_obj ) {
    // your code here
}
add_action( 'um_before_submit_form_post', 'my_custom_before_submit_form_post' );