Action: um_user_login

do_action( 'um_user_login', $submitted_data, $form_data )

Fires after successful submit login form.

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

  • 10 - um_user_login() Login form main handler.
Parameters:
Name Type Description
$submitted_data array

$_POST Submission array.

$form_data array

UM form data. Since 2.6.7

Since:
  • 1.3.x
Source:
Example

Make any custom login action if submission is valid.

function my_user_login( $submitted_data, $form_data ) {
    // your code here
}
add_action( 'um_user_login', 'my_user_login', 10, 2 );