Yoast\WP\SEO\AI\Authentication\Application

OAuth_Auth_Strategy::is_insufficient_scopeprivateYoast 1.0

Whether the forbidden response is an insufficient_scope error.

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

Хуков нет.

Возвращает

true|false. True if the response indicates missing scope.

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

// private - только в коде основоного (родительского) класса
$result = $this->is_insufficient_scope( $exception ): bool;
$exception(Forbidden_Exception) (обязательный)
The exception to inspect.

Код OAuth_Auth_Strategy::is_insufficient_scope() Yoast 28.3

private function is_insufficient_scope( Forbidden_Exception $exception ): bool {
	return ( $this->error_code( $exception ) === 'insufficient_scope' );
}