Yoast\WP\SEO\AI_Authorization\Domain
Code_Verifier::is_expired
Check if the code is expired.
Метод класса: Code_Verifier{}
Хуков нет.
Возвращает
true|false. True if the code is expired, false otherwise.
Использование
$Code_Verifier = new Code_Verifier(); $Code_Verifier->is_expired( $validity_in_seconds ): bool;
- $validity_in_seconds(int) (обязательный)
- The validity of the code in seconds.
Код Code_Verifier::is_expired() Code Verifier::is expired Yoast 27.7
public function is_expired( int $validity_in_seconds ): bool {
return $this->created_at < ( \time() - $validity_in_seconds );
}