Action hook 'after_password_reset'

in WP Core File wp-includes/user.php at line 3445

View Source

after_password_reset

Action Hook
Description
Fires after the user's password is reset.

Hook Information

File Location wp-includes/user.php View on GitHub
Hook Type Action
Line Number 3445

Hook Parameters

Type Name Description
WP_User $user The user.
string $new_pass New user password.

Usage Examples

Basic Usage
<?php
// Hook into after_password_reset
add_action('after_password_reset', 'my_custom_function', 10, 2);

function my_custom_function($user, $new_pass) {
    // Your custom code here
}

Source Code Context

wp-includes/user.php:3445 - How this hook is used in WordPress core
<?php
3440  	 * @since 4.4.0
3441  	 *
3442  	 * @param WP_User $user     The user.
3443  	 * @param string  $new_pass New user password.
3444  	 */
3445  	do_action( 'after_password_reset', $user, $new_pass );
3446  }
3447  
3448  /**
3449   * Handles registering a new user.
3450   *

PHP Documentation

<?php
/**
	 * Fires after the user's password is reset.
	 *
	 * @since 4.4.0
	 *
	 * @param WP_User $user     The user.
	 * @param string  $new_pass New user password.
	 */
Quick Info
  • Hook Type: Action
  • Parameters: 2
  • File: wp-includes/user.php
Related Hooks

Related hooks will be displayed here in future updates.