lost_password
Fires before the lost password form.
Использование
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_Error object containing any errors generated by using invalid credentials. Note that the error object may not contain any errors.
Список изменений
С версии 1.5.1 | Введена. |
С версии 5.1.0 | Added the $errors parameter. |
Где вызывается хук
В файле: /wp-login.php
lost_password
wp-login.php 867
do_action( 'lost_password', $errors );