WP_Recovery_Mode_Key_Service::get_keysprivateWP 5.2.0

Gets the recovery key records.

Method of the class: WP_Recovery_Mode_Key_Service{}

No Hooks.

Returns

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

Usage

// private - for code of main (parent) class only
$result = $this->get_keys();

Changelog

Since 5.2.0 Introduced.
Since 6.8.0 Each key is now hashed using wp_fast_hash() instead of phpass. Existing keys may still be hashed using phpass.

WP_Recovery_Mode_Key_Service::get_keys() code WP 7.0

private function get_keys() {
	return (array) get_option( $this->option_name, array() );
}