$hashed =
$wp_hasher->
HashPassword( $key );
$records =
$this->
get_keys();
$records[ $token ] = array
( 'hashed_key' =>
$hashed,
'created_at' =>
time(),
);
$this->
update_keys( $records );
/**
* Fires when a recovery mode key is generated.
*
* @since 5.2.0
*
* @param string $token The recovery data token.
* @param string $key The recovery mode key.
*/
do_action( 'generate_recovery_mode_key',
$token,
$key );