lost_password
Fires before the lost password form.
Description
do_action( 'lost_password' );
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'lost_password' );
- The following example is for adding a hook callback.
- // define the lost_password callback
- function action_lost_password( ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'lost_password', 'action_lost_password', 10, 0 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'lost_password', 'action_lost_password', 10, 0 );
Defined (1)
The action is defined in the following location(s).
- /wp-login.php
- do_action( 'lost_password' );