wppaste
WordPress

do_action( 'retrieve_password_key', string $user_login, string $key )

Since
2.5.0
Fires when a password reset key is generated.

Compatibility

WordPress
since 2.5.0
  • 6.7.7
  • 6.8.8
  • 6.9.7
  • 7.0.4
  • 7.1.0

Present in every tracked release (6.7.7 to 7.1.0).

Parameters

$user_loginstring
The username for the user.
$keystring
The generated password reset key.

Where this hook fires · 1

  • wp-includes/user.php:3087get_password_reset_key()

Source code

	 *	 * @since 2.5.0	 *	 * @param string $user_login The username for the user.	 * @param string $key        The generated password reset key.	 */	do_action( 'retrieve_password_key', $user->user_login, $key ); 	$hashed = time() . ':' . wp_fast_hash( $key ); 	$key_saved = wp_update_user(		array(			'ID'                  => $user->ID,

Changelog

Introduced in 2.5.0. Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

About this page

Parsed data
Generated from the wordpress-develop 6.9.7 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.