WP_Recovery_Mode_Key_Service::get_keys()
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() WP Recovery Mode Key Service::get keys code WP 6.7.1
private function get_keys() { return (array) get_option( $this->option_name, array() ); }