On this page
do_action( 'password_reset', WP_User $user, string $new_pass )
Fires before the user’s password is reset.
Parameters
$userWP_User-
The user.
$new_passstring-
New user password.
More Information
Runs after the user submits a new password during password reset but before the new password is actually set.
Source
File: wp-includes/user.php. View all references
do_action( 'password_reset', $user, $new_pass );
Related
Used By
| Used By | Description |
|---|---|
| reset_password() wp-includes/user.php | Handles resetting the user’s password. |
Changelog
| Version | Description |
|---|---|
| 1.5.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/password_reset