WP_Recovery_Mode_Key_Service::get_keysprivateWP 5.2.0

Gets the recovery key records.

Метод класса: WP_Recovery_Mode_Key_Service{}

Хуков нет.

Возвращает

Массив. Associative array of token => data pairs, where the data is an associative array of information about the key.

Использование

// private - только в коде основоного (родительского) класса
$result = $this->get_keys();

Список изменений

С версии 5.2.0 Введена.
С версии 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() WP 7.0

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