Skip to content
Docs
Get RestroPress

Action

rpress_log_user_in

Updated
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#

ParameterTypeDescription
$user_idintID of the user who was logged in.
$user_loginstringThe user's login name.
$user_passstringThe 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), in rpress_log_user_in()

See also#

Was this page helpful?