WordPress at Your Fingertips
function is not described

WP_Recovery_Mode_Key_Service::update_keys() private WP 5.2.0

Updates the recovery key records.

{} It's a method of the class: WP_Recovery_Mode_Key_Service{}

No Hooks.


true|false. True on success, false on failure.


// 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'.


Since 5.2.0 Introduced.

Code of WP_Recovery_Mode_Key_Service::update_keys() WP 5.8

private function update_keys( array $keys ) {
	return update_option( $this->option_name, $keys );