Title: after_password_reset
Published: December 9, 2015
Last modified: August 20, 2026

---

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

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/after_password_reset/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/after_password_reset/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/after_password_reset/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/after_password_reset/?output_format=md#changelog)
 * [User Contributed Notes](https://developer.wordpress.org/reference/hooks/after_password_reset/?output_format=md#user-contributed-notes)

[ Back to top](https://developer.wordpress.org/reference/hooks/after_password_reset/?output_format=md#wp--skip-link--target)

Fires after the user’s password is reset.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/after_password_reset/?output_format=md#parameters)󠁿

 `$user`[WP_User](https://developer.wordpress.org/reference/classes/wp_user/)

The user.

`$new_pass`string

New user password.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/after_password_reset/?output_format=md#source)󠁿

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

[View all references](https://developer.wordpress.org/reference/files/wp-includes/user.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.1/src/wp-includes/user.php#L3537)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/user.php#L3537-L3537)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/after_password_reset/?output_format=md#related)󠁿

| Used by | Description | 
| [reset_password()](https://developer.wordpress.org/reference/functions/reset_password/)`wp-includes/user.php` |

Handles resetting the user’s password.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/after_password_reset/?output_format=md#changelog)󠁿

| Version | Description | 
| [4.4.0](https://developer.wordpress.org/reference/since/4.4.0/) | Introduced. |

## 󠀁[User Contributed Notes](https://developer.wordpress.org/reference/hooks/after_password_reset/?output_format=md#user-contributed-notes)󠁿

 1.   [Skip to note 4 content](https://developer.wordpress.org/reference/hooks/after_password_reset/?output_format=md#comment-content-6341)
 2.    [jon](https://profiles.wordpress.org/adiant/)  [  4 years ago  ](https://developer.wordpress.org/reference/hooks/after_password_reset/#comment-6341)
 3.  [You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fafter_password_reset%2F%23comment-6341)
     Vote results for this note: 1[You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fafter_password_reset%2F%23comment-6341)
 4.  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/](https://developer.wordpress.org/reference/hooks/profile_update/)
 5.   [Log in to add feedback](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fafter_password_reset%2F%3Freplytocom%3D6341%23feedback-editor-6341)
 6.   [Skip to note 5 content](https://developer.wordpress.org/reference/hooks/after_password_reset/?output_format=md#comment-content-3684)
 7.    [Alexandre Froger](https://profiles.wordpress.org/frogerme/)  [  7 years ago  ](https://developer.wordpress.org/reference/hooks/after_password_reset/#comment-3684)
 8.  [You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fafter_password_reset%2F%23comment-3684)
     Vote results for this note: 0[You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fafter_password_reset%2F%23comment-3684)
 9.  Remark: the `$new_pass` parameter is the “New password for the user in plaintext”
     originally passed to `reset_password( $user, $new_pass ).`
 10.  [Log in to add feedback](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fafter_password_reset%2F%3Freplytocom%3D3684%23feedback-editor-3684)
 11.  [Skip to note 6 content](https://developer.wordpress.org/reference/hooks/after_password_reset/?output_format=md#comment-content-5889)
 12.   [Sayedul Sayem](https://profiles.wordpress.org/sayedulsayem/)  [  4 years ago  ](https://developer.wordpress.org/reference/hooks/after_password_reset/#comment-5889)
 13. [You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fafter_password_reset%2F%23comment-5889)
     Vote results for this note: 0[You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fafter_password_reset%2F%23comment-5889)
 14.     ```php
         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...
         }
         ```
     
 15.  [Log in to add feedback](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fafter_password_reset%2F%3Freplytocom%3D5889%23feedback-editor-5889)

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fafter_password_reset%2F)
before being able to contribute a note or feedback.