validate_password_reset
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
validate_password_reset
woocommerce/includes/class-wc-form-handler.php 1162
do_action( 'validate_password_reset', $errors, $user );