WP_Recovery_Mode_Key_Service::validate_recovery_mode_key

SummerySummery

Verifies if the recovery mode key is correct.

Syntax

WP_Recovery_Mode_Key_Service::validate_recovery_mode_key( string $token, string $key, int $ttl )

DescriptionDescription

Recovery mode keys can only be used once; the key will be consumed in the process.

ParametersParameters

$token

(string) (Required) The token used when generating the given key.

$key

(string) (Required) The unhashed key.

$ttl

(int) (Required) Time in seconds for the key to be valid for.

ReturnReturn

(true|WP_Error) True on success, error object on failure.

SourceSource

File: wp-includes/class-wp-recovery-mode-key-service.php


			

ChangelogChangelog

Changelog
Version Description
5.2.0 Introduced.
Scroll to Top