retrieve_password_key action-hookWP 2.5.0

Fires when a password reset key is generated.

Usage

add_action( 'retrieve_password_key', 'wp_kama_retrieve_password_key_action', 10, 2 );

/**
 * Function for `retrieve_password_key` action-hook.
 * 
 * @param string $user_login The username for the user.
 * @param string $key        The generated password reset key.
 *
 * @return void
 */
function wp_kama_retrieve_password_key_action( $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

get_password_reset_key()
retrieve_password_key
wp-includes/user.php 2969
do_action( 'retrieve_password_key', $user->user_login, $key );

Where the hook is used in WordPress

Usage not found.