WP_Recovery_Mode_Key_Service::update_keys
Updates the recovery key records.
Метод класса: WP_Recovery_Mode_Key_Service{}
Хуков нет.
Возвращает
bool. True on success, false on failure.
Использование
// private - только в коде основоного (родительского) класса $result = $this->update_keys( $keys );
- $keys(массив) (обязательный)
Associative array of token => data pairs, where the data is an associative array of information about the key.
-
...$0(массив)
Information about the key.-
hashed_key(строка)
The hashed value of the key. - created_at(int)
The timestamp when the key was created.
-
-
Список изменений
| С версии 5.2.0 | Введена. |
| С версии 6.8.0 | Each key should now be hashed using wp_fast_hash() instead of phpass. |
Код WP_Recovery_Mode_Key_Service::update_keys() WP Recovery Mode Key Service::update keys WP 7.1
private function update_keys( array $keys ) {
return update_option( $this->option_name, $keys, false );
}