after_password_reset
Fires after the user's password is reset.
Usage
add_action( 'after_password_reset', 'wp_kama_after_password_reset_action', 10, 2 ); /** * Function for `after_password_reset` action-hook. * * @param WP_User $user The user. * @param string $new_pass New user password. * * @return void */ function wp_kama_after_password_reset_action( $user, $new_pass ){ // action... }
- $user(WP_User)
- The user.
- $new_pass(string)
- New user password.
Changelog
Since 4.4.0 | Introduced. |
Where the hook is called
after_password_reset
wp-includes/user.php 3324
do_action( 'after_password_reset', $user, $new_pass );
Where the hook is used in WordPress
wp-includes/default-filters.php 505
add_action( 'after_password_reset', 'wp_password_change_notification' );