lostpassword_post action-hook . WP 2.1.0
Fires before errors are returned from a password reset request.
Usage
add_action( 'lostpassword_post', 'action_function_name_7579', 10, 2 ); function action_function_name_7579( $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.
Changelog
Since 2.1.0 | Introduced. |
Since 4.4.0 | Added the $errors parameter. |
Since 5.4.0 | Added the $user_data parameter. |
Where the hook is called
wp-login.php 383
do_action( 'lostpassword_post', $errors, $user_data );