Action: um_submit_form_{$mode}

do_action( 'um_submit_form_{$mode}', $post, $form_data )

Fires for make main actions on UM login, registration or profile form submission. Where $mode equals login, registration or profile

Internal Ultimate Member callbacks (Priority -> Callback name -> Excerpt):

um_submit_form_login:

  • 1 - UM()->login()->verify_nonce() Verify nonce.
  • 10 - um_submit_form_login() Login form main handler.

um_submit_form_register:

  • 1 - UM()->register()->verify_nonce() Verify nonce.
  • 9 - UM()->agreement_validation() GDPR Agreement.
  • 9 - UM()->terms_conditions()->agreement_validation() Terms & Conditions Agreement.
  • 10 - um_submit_form_register() Register form main handler.

um_submit_form_profile:

  • 10 - um_submit_form_profile() Profile form main handler.
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 custom action on profile submission.

function my_custom_submit_form_profile( $post, $form_data ) {
    // your code here
}
add_action( 'um_submit_form_profile', 'my_custom_submit_form_profile', 10, 2 );