retrieve_password_key action-hook . WP 2.5.0
Fires when a password reset key is generated.
Usage
add_action( 'retrieve_password_key', 'action_function_name_4456', 10, 2 ); function action_function_name_4456( $user_login, $key ){ // action... }
- $user_login(string)
- The username for the user.
- $key(string)
- The generated password reset key.
Changelog
Since 2.5.0 | Introduced. |
Where the hook is called
wp-includes/user.php 2541
do_action( 'retrieve_password_key', $user->user_login, $key );