WP_Recovery_Mode_Key_Service::validate_recovery_mode_key( string $token, string $key, int $ttl )
Verifies if the recovery mode key is correct.
Description
Recovery mode keys can only be used once; the key will be consumed in the process.
Parameters
- $token
-
(Required) The token used when generating the given key.
- $key
-
(Required) The plain text key.
- $ttl
-
(Required) Time in seconds for the key to be valid for.
Return
(true|WP_Error) True on success, error object on failure.
Source
File: wp-includes/class-wp-recovery-mode-key-service.php
Changelog
Version | Description |
---|---|
5.2.0 | Introduced. |