WPDev.one
Core Class

WP_Recovery_Mode_Key_Service

class WP_Recovery_Mode_Key_Service // Constructor: function Object() { [native code] }

Core class used to generate and validate keys used to enter Recovery Mode.

Methods 7 methods

Method / Return Description
generate_recovery_mode_token()
string

Creates a recovery mode token.

generate_and_store_recovery_mode_key()
string

Creates a recovery mode key.

Parameters: $token: mixed
validate_recovery_mode_key()
(true

Verifies if the recovery mode key is correct.

Parameters: $token: mixed, $key: mixed, $ttl: mixed
clean_expired_keys()
void

Removes expired recovery mode keys.

Parameters: $ttl: mixed
remove_key()
void

Removes a used recovery key.

Parameters: $token: mixed
get_keys()
array

Gets the recovery key records.

update_keys()
bool

Updates the recovery key records.

Parameters: $keys: array

Properties

Property / Type Description
$option_name
mixed
public
No description available.

Class Information

Since Version
5.2.0
Source File
wp-includes/class-wp-recovery-mode-key-service.php
Advertisement