WP_Recovery_Mode_Key_Service::get_keys()privateWP 5.2.0

Gets the recovery key records.

Method of the class: WP_Recovery_Mode_Key_Service{}

No Hooks.

Return

Array. Associative array of $token => $data pairs, where $data has keys 'hashed_key' and 'created_at'.

Usage

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

Changelog

Since 5.2.0 Introduced.

WP_Recovery_Mode_Key_Service::get_keys() code WP 6.5.2

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