resetpass_form
Fires following the 'Strength indicator' meter in the user password reset form.
Description
Parameters (1)
- 0. $user (WP_User)
- User object of the user whose password is being reset.
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'resetpass_form', $user );
- The following example is for adding a hook callback.
- // define the resetpass_form callback
- function action_resetpass_form( $user ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'resetpass_form', 'action_resetpass_form', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'resetpass_form', 'action_resetpass_form', 10, 1 );
Defined (1)
The action is defined in the following location(s).
- /wp-login.php
- do_action( 'resetpass_form', $user );