WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

Requests_Response::throw_for_status() public WP 1.0

Throws an exception if the request was not successful

{} Это метод класса: Requests_Response{}

Хуков нет.


null. Ничего.


$Requests_Response = new Requests_Response();
$Requests_Response->throw_for_status( $allow_redirects );
Set to false to throw on a 3xx as well

Код Requests_Response::throw_for_status() WP 5.7.2

public function throw_for_status($allow_redirects = true) {
	if ($this->is_redirect()) {
		if (!$allow_redirects) {
			throw new Requests_Exception('Redirection not allowed', 'response.no_redirects', $this);
	elseif (!$this->success) {
		$exception = Requests_Exception_HTTP::get_class($this->status_code);
		throw new $exception(null, $this);