after_password_reset

The WordPress Core after password reset hook.

Description

add_action( 'after_password_reset', (string) $wp_password_change_notification ); 

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.
  1. // run the action 
  2. do_action( 'after_password_reset', $wp_password_change_notification ); 
The following example is for adding a hook callback.
  1. // define the after_password_reset callback 
  2. function action_after_password_reset( $wp_password_change_notification ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'after_password_reset', 'action_after_password_reset', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. 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  
  1. add_action( 'after_password_reset', 'wp_password_change_notification' ); 
/wp-includes/user.php  
  1. do_action( 'after_password_reset', $user, $new_pass );