Yoast\WP\SEO\AI\Authentication\Application
OAuth_Auth_Strategy::is_insufficient_scope
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() 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' );
}