WP_Recovery_Mode_Key_Service::update_keys()privateWP 5.2.0

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() code WP 6.4.3

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