Action: um_on_login_before_redirect

do_action( 'um_on_login_before_redirect', $user_id )

Fires after successful login and before user is redirected.

Parameters:
Name Type Description
$user_id int

User ID.

Since:
  • 1.3.x
Source:
Example

Make any custom action after successful login and before user is redirected.

function my_on_login_before_redirect( $user_id ) {
    // your code here
}
add_action( 'um_on_login_before_redirect', 'my_on_login_before_redirect', 10, 1 );