Alert: 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.

WP_Recovery_Mode_Key_Service::get_keys() WordPress Method

The WP_Recovery_Mode_Key_Service::get_keys() method is used to get the list of all the available keys for a given user. The method takes two parameters: the user ID and the key type. The user ID is used to identify the user for whom the keys are to be fetched. The key type is used to identify the type of keys that are to be fetched. The method returns an array of recovery mode keys.

WP_Recovery_Mode_Key_Service::get_keys() #

Gets the recovery key records.


Return

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


Top ↑

Source

File: wp-includes/class-wp-recovery-mode-key-service.php

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


Top ↑

Changelog

Changelog
VersionDescription
5.2.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.