password_reset action-hookWP 1.5.0

Fires before the user's password is reset.

Usage

add_action( 'password_reset', 'wp_kama_password_reset_action', 10, 2 );

/**
 * Function for `password_reset` action-hook.
 * 
 * @param WP_User $user     The user.
 * @param string  $new_pass New user password.
 *
 * @return void
 */
function wp_kama_password_reset_action( $user, $new_pass ){

	// action...
}
$user(WP_User)
The user.
$new_pass(string)
New user password.

Changelog

Since 1.5.0 Introduced.

Where the hook is called

reset_password()
password_reset
wp-includes/user.php 3311
do_action( 'password_reset', $user, $new_pass );

Where the hook is used in WordPress

Usage not found.