do_action( ‘after_password_reset’, WP_User $user, string $new_pass )

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

VersionDescription
4.4.0Introduced.

User Contributed Notes

  1. Skip to note 6 content
    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...
    }

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