lost_password WordPress Action Hook
The lost_password hook is used to allow a user to reset their password if they have forgotten it. This hook is called when the user clicks the "Lost your password?" link on the login page.
do_action( 'lost_password', WP_Error $errors ) #
Fires before the lost password form.
Contents
Parameters
- $errors
(WP_Error)A
WP_Errorobject containing any errors generated by using invalid credentials. Note that the error object may not contain any errors.
Source
File: wp-login.php
Changelog
| Version | Description |
|---|---|
| 5.1.0 | Added the $errors parameter. |
| 1.5.1 | Introduced. |