Yoast\WP\SEO\MyYoast_Client\Application

Callback_Outcome::exchange_errorpublic staticYoast 1.0

Creates an outcome for a failure while exchanging the code at the token endpoint.

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

Хуков нет.

Возвращает

self.

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

$result = Callback_Outcome::exchange_error( ?string $oauth_error_code ): self;
?string $oauth_error_code(обязательный)
.

Код Callback_Outcome::exchange_error() Yoast 28.3

public static function exchange_error( ?string $oauth_error_code ): self {
	return new self( false, false, self::PHASE_EXCHANGE, $oauth_error_code );
}