after_password_reset
The WordPress Core after password reset hook.
Description
Parameters (1)
- 0. $wp_password_change_notification (string) =>
'wp_password_change_notification'
- The
wp
password change notification.
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'after_password_reset', $wp_password_change_notification );
- The following example is for adding a hook callback.
- // define the after_password_reset callback
- function action_after_password_reset( $wp_password_change_notification ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'after_password_reset', 'action_after_password_reset', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'after_password_reset', 'action_after_password_reset', 10, 1 );
Defined (2)
The action is defined in the following location(s).
- /wp-includes/default-filters.php
- add_action( 'after_password_reset', 'wp_password_change_notification' );
- /wp-includes/user.php
- do_action( 'after_password_reset', $user, $new_pass );