WP_Recovery_Mode_Key_Service::update_keysprivateWP 5.2.0

Updates the recovery key records.

Method of the class: WP_Recovery_Mode_Key_Service{}

No Hooks.

Returns

true|false. True on success, false on failure.

Usage

// private - for code of main (parent) class only
$result = $this->update_keys( $keys );
$keys(array) (required)

Associative array of token => data pairs, where the data is an associative array of information about the key.

  • ...$0(array)
    Information about the key.

    • hashed_key(string)
      The hashed value of the key.

    • created_at(int)
      The timestamp when the key was created.

Changelog

Since 5.2.0 Introduced.
Since 6.8.0 Each key should now be hashed using wp_fast_hash() instead of phpass.

WP_Recovery_Mode_Key_Service::update_keys() code WP 6.9

private function update_keys( array $keys ) {
	return update_option( $this->option_name, $keys, false );
}