do_action( 'after_password_reset', WP_User $user, string $new_pass )

Fires after the user’s password is reset.


$user WP_User
The user.
$new_pass string
New user password.

Top ↑


File: wp-includes/user.php. View all references

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

Top ↑


Version Description
4.4.0 Introduced.

Top ↑

User Contributed Notes

  1. Skip to note 2 content
    Contributed by Sayedul Sayem
    add_action('after_password_reset', 'after_password_reset_action', 10, 2);
    function after_password_reset_action($user, $new_pass) {
        // user email. $user return full user info
        $email = $user->data->user_email;
        // new entered password (plain text)
        $password = $new_pass;
        // Do whatever you want...
  2. Skip to note 3 content
    Contributed by jonburnaby

    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

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