Yoast\WP\SEO\MyYoast_Client\Domain
HTTP_Response::is_successful
Whether the status indicates a successful response (2xx).
Метод класса: HTTP_Response{}
Хуков нет.
Возвращает
true|false. True if the status is 2xx.
Использование
$HTTP_Response = new HTTP_Response(); $HTTP_Response->is_successful(): bool;
Код HTTP_Response::is_successful() HTTP Response::is successful Yoast 28.3
public function is_successful(): bool {
return ( $this->status >= 200 && $this->status < 300 );
}