do_action( 'after_password_reset', WP_User $user , string $new_pass )
Fires after the user’s password is reset.
Parameters
-
$user
WP_User -
The user.
-
$new_pass
string -
New user password.
Source
File: wp-includes/user.php
.
View all references
do_action( 'after_password_reset', $user, $new_pass );
Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.
Remark: the
$new_pass
parameter is the “New password for the user in plaintext” originally passed toreset_password( $user, $new_pass ).
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/