Fires after the user’s password is reset.
Parameters
$user
WP_User- The user.
$new_pass
string- New user password.
Source
do_action( 'after_password_reset', $user, $new_pass );
Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |
Fires after the user’s password is reset.
$user
WP_User$new_pass
stringdo_action( 'after_password_reset', $user, $new_pass );
Version | Description |
---|---|
4.4.0 | Introduced. |
You must log in before being able to contribute a note or feedback.
As the name and description imply, this Action only fires during the Lost Password reset process. If you want to detect all password changes, you will also need to set up an Action for
'profile_update'
described at https://developer.wordpress.org/reference/hooks/profile_update/Remark: the
$new_pass
parameter is the “New password for the user in plaintext” originally passed toreset_password( $user, $new_pass ).