Yoast\WP\SEO\MyYoast_Client\Application

MyYoast_Client::revoke_tokenpublicYoast 1.0

Revokes a token at the authorization server.

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

Хуков нет.

Возвращает

true|false. True if the revocation request was sent.

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

$MyYoast_Client = new MyYoast_Client();
$MyYoast_Client->revoke_token(;

Код MyYoast_Client::revoke_token() Yoast 27.7

public function revoke_token(
	// phpcs:ignore PHPCompatibility.Attributes.NewAttributes.PHPNativeAttributeFound -- No-op on PHP < 8.2; redacts parameter from stack traces on PHP 8.2+.
	#[SensitiveParameter]
	string $token,
	string $token_type_hint = Token_Type_Hint::REFRESH_TOKEN
): bool {
	return $this->revocation_handler->revoke( $token, $token_type_hint );
}