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

do_action( 'password_reset', $user, $new_pass );

Changelog

VersionDescription
1.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.