validate_password_reset action-hookWC 1.0

This is a WordPress - validate_password_reset hook. The plugin just uses it.

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.

Where the hook is called

WC_Form_Handler::process_reset_password()
validate_password_reset
woocommerce/includes/class-wc-form-handler.php 1076
do_action( 'validate_password_reset', $errors, $user );

Where the hook is used in WooCommerce

Usage not found.