Action
rpress_log_user_in
On this page
Fires after RestroPress has logged a user in.
Runs at the end of rpress_log_user_in, after the auth cookie is set, the current user changed and wp_login fired. It is used by the login form, checkout login and registration at checkout. It is not called when the user ID is below 1.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$user_id | int | ID of the user who was logged in. |
$user_login | string | The user's login name. |
$user_pass | string | The plain-text password supplied by the user. |
Example#
function my_after_rpress_login( $user_id, $user_login, $user_pass ) {
update_user_meta( $user_id, 'my_last_rpress_login', time() );
}
add_action( 'rpress_log_user_in', 'my_after_rpress_login', 10, 3 );
Notes#
The password is passed in plain text; do not log or store it.
Source#
Fired from:
includes/login-register.php(line 104), inrpress_log_user_in()
See also#
Was this page helpful?
