WP_Recovery_Mode_Key_Service::update_keys( array $keys ): bool

In this article

This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

Updates the recovery key records.

Parameters

$keysarrayrequired
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.

Return

bool True on success, false on failure.

Source

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

Changelog

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

User Contributed Notes

You must log in before being able to contribute a note or feedback.