lost_password
Fires before the lost password form.
Usage
add_action( 'lost_password', 'wp_kama_lost_password_action' );
/**
* Function for `lost_password` action-hook.
*
* @param WP_Error $errors A `WP_Error` object containing any errors generated by using invalid credentials. Note that the error object may not contain any errors.
*
* @return void
*/
function wp_kama_lost_password_action( $errors ){
// action...
}
- $errors(WP_Error)
- A
WP_Errorobject containing any errors generated by using invalid credentials. Note that the error object may not contain any errors.
Changelog
| Since 1.5.1 | Introduced. |
| Since 5.1.0 | Added the $errors parameter. |
Where the hook is called
In file: /wp-login.php
lost_password
wp-login.php 875
do_action( 'lost_password', $errors );