Yoast\WP\SEO\MyYoast_Client\Domain

Token_Set::is_expiredpublicYoast 1.0

Whether the access token has expired.

Uses a 60-second buffer to allow for request latency.

Метод класса: Token_Set{}

Хуков нет.

Возвращает

true|false.

Использование

$Token_Set = new Token_Set();
$Token_Set->is_expired(): bool;

Код Token_Set::is_expired() Yoast 28.3

public function is_expired(): bool {
	return \time() >= ( $this->expires_at - self::EXPIRY_BUFFER_SECONDS );
}