On this page
WP_Recovery_Mode_Key_Service::update_keys( array $keys ): bool
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.
Updates the recovery key records.
Parameters
$keysarray 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. View all references
private function update_keys( array $keys ) {
return update_option( $this->option_name, $keys );
}
Related
Uses
| Uses | Description |
|---|---|
| update_option() wp-includes/option.php | Updates the value of an option that was already added. |
Used By
| Used By | Description |
|---|---|
| WP_Recovery_Mode_Key_Service::generate_and_store_recovery_mode_key() wp-includes/class-wp-recovery-mode-key-service.php | Creates a recovery mode key. |
| WP_Recovery_Mode_Key_Service::clean_expired_keys() wp-includes/class-wp-recovery-mode-key-service.php | Removes expired recovery mode keys. |
| WP_Recovery_Mode_Key_Service::remove_key() wp-includes/class-wp-recovery-mode-key-service.php | Removes a used recovery key. |
Changelog
| Version | Description |
|---|---|
| 5.2.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_recovery_mode_key_service/update_keys