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::update_keys() WordPress Method
The update_keys() method is a static method of the WP_Recovery_Mode_Key_Service class. This method is responsible for generating and storing new encryption keys for use in recovery mode.
WP_Recovery_Mode_Key_Service::update_keys( array $keys ) #
Updates the recovery key records.
Parameters
- $keys
(array)(Required)Associative array of $token => $data pairs, where $data has keys 'hashed_key' and 'created_at'.
Return
(bool) True on success, false on failure.
Source
File: wp-includes/class-wp-recovery-mode-key-service.php
private function update_keys( array $keys ) { return update_option( $this->option_name, $keys ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
5.2.0 | Introduced. |