WP_HTTP_Response::get_status()publicWP 4.4.0

Retrieves the HTTP return code for the response.

Method of the class: WP_HTTP_Response{}

No Hooks.

Return

Int. The 3-digit HTTP status code.

Usage

$WP_HTTP_Response = new WP_HTTP_Response();
$WP_HTTP_Response->get_status();

Changelog

Since 4.4.0 Introduced.

WP_HTTP_Response::get_status() code WP 6.5.2

public function get_status() {
	return $this->status;
}