um_on_login_before_redirect
Hook type
Action
Description
Hook that runs after successful login and before user is redirected
Parameters
$user_id
(int) User ID
Usage
add_action( 'um_on_login_before_redirect', 'function_name', 10, 1 );
Examples
<?php add_action( 'um_on_login_before_redirect', 'my_on_login_before_redirect', 10, 1 ); function my_on_login_before_redirect( $user_id ) { // your code here } ?>
Change Log
Since: 2.0
Source
um_on_login_before_redirect
is located in includes/core/um-actions-login.php::line 202