lostpassword_post
This is a WordPress - lostpassword_post hook. The plugin just uses it.
Fires before errors are returned from a password reset request.
Usage
add_action( 'lostpassword_post', 'wp_kama_lostpassword_post_action', 10, 2 ); /** * Function for `lostpassword_post` action-hook. * * @param WP_Error $errors A WP_Error object containing any errors generated by using invalid credentials. * @param WP_User|false $user_data WP_User object if found, false if the user does not exist. * * @return void */ function wp_kama_lostpassword_post_action( $errors, $user_data ){ // action... }
- $errors(WP_Error)
- A WP_Error object containing any errors generated by using invalid credentials.
- $user_data(WP_User|false)
- WP_User object if found, false if the user does not exist.
Where the hook is called
lostpassword_post
woocommerce/includes/shortcodes/class-wc-shortcode-my-account.php 287
do_action( 'lostpassword_post', $errors, $user_data );