Fires after the user’s password is reset.
Parameters
$userWP_User- The user.
$new_passstring- 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.
$userWP_User$new_passstringdo_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_passparameter is the “New password for the user in plaintext” originally passed toreset_password( $user, $new_pass ).