validate_password_reset action-hookWP 3.5.0

Fires before the password reset procedure is validated.

Usage

add_action( 'validate_password_reset', 'wp_kama_validate_password_reset_action', 10, 2 );

/**
 * Function for `validate_password_reset` action-hook.
 * 
 * @param WP_Error         $errors WP Error object.
 * @param WP_User|WP_Error $user   WP_User object if the login and reset key match. WP_Error object otherwise.
 *
 * @return void
 */
function wp_kama_validate_password_reset_action( $errors, $user ){

	// action...
}
$errors(WP_Error)
WP Error object.
$user(WP_User|WP_Error)
WP_User object if the login and reset key match. WP_Error object otherwise.

Changelog

Since 3.5.0 Introduced.

Where the hook is called

In file: /wp-login.php
validate_password_reset
wp-login.php 987
do_action( 'validate_password_reset', $errors, $user );

Where the hook is used in WordPress

Usage not found.