Action: um_submit_form_errors_hook

do_action( 'um_submit_form_errors_hook', $post, $form_data )

Fires for validation UM login, registration or profile form submission.

Internal Ultimate Member callbacks (Priority -> Callback name -> Excerpt): 10 - um_submit_form_errors_hook() All form validation handlers. 20 - um_recaptcha_validate() reCAPTCHA form validation handlers. um-recaptcha extension.

Parameters:
Name Type Description
$post array

$_POST Submission array.

$form_data array

UM form data. Since 2.6.7

Since:
  • 1.3.x
Source:
Example

Make any common validation action here.

function my_custom_before_submit_form_post( $post, $form_data ) {
    // your code here
}
add_action( 'um_submit_form_errors_hook', 'my_custom_submit_form_errors_hook', 10, 2 );