Yoast\WP\SEO\MyYoast_Client\Infrastructure\Registration

Client_Registration::is_uri_validatedpublicYoast 1.0

Whether the given redirect URI has completed the OAuth authorization-code flow on this site.

The state lives on the stored registration: it is pruned to the current redirect-URI set whenever those change, and invalidated when the client is deregistered.

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

Хуков нет.

Возвращает

true|false.

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

$Client_Registration = new Client_Registration();
$Client_Registration->is_uri_validated( $redirect_uri ): bool;
$redirect_uri(строка) (обязательный)
The redirect URI to check.

Код Client_Registration::is_uri_validated() Yoast 28.3

public function is_uri_validated( string $redirect_uri ): bool {
	$registered_client = $this->get_registered_client();

	return $registered_client !== null && $registered_client->is_uri_validated( $redirect_uri );
}