Yoast\WP\SEO\Exceptions\OAuth

Authentication_Failed_Exception::get_response()publicYoast 1.0

Returns a formatted response object.

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

Хуков нет.

Возвращает

Объект. The response object.

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

$Authentication_Failed_Exception = new Authentication_Failed_Exception();
$Authentication_Failed_Exception->get_response();

Код Authentication_Failed_Exception::get_response() Yoast 22.4

public function get_response() {
	return (object) [
		'tokens' => [],
		'error'  => $this->getMessage() . ': ' . $this->getPrevious()->getMessage(),
		'status' => $this->getCode(),
	];
}