WP_Recovery_Mode_Key_Service::update_keys()
Updates the recovery key records.
Method of the class: WP_Recovery_Mode_Key_Service{}
No Hooks.
Return
true|false
. True on success, false on failure.
Usage
// private - for code of main (parent) class only $result = $this->update_keys( $keys );
- $keys(array) (required)
- Associative array of $token => $data pairs, where $data has keys 'hashed_key' and 'created_at'.
Changelog
Since 5.2.0 | Introduced. |
WP_Recovery_Mode_Key_Service::update_keys() WP Recovery Mode Key Service::update keys code WP 6.7.2
private function update_keys( array $keys ) { return update_option( $this->option_name, $keys, false ); }