Returns the initialized WP_Http Object
Source
function _wp_http_get_object() {
static $http = null;
if ( is_null( $http ) ) {
$http = new WP_Http();
}
return $http;
}
Changelog
Version | Description |
---|---|
2.7.0 | Introduced. |
CARVIEW |
This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
Returns the initialized WP_Http Object
function _wp_http_get_object() {
static $http = null;
if ( is_null( $http ) ) {
$http = new WP_Http();
}
return $http;
}
Used by | Description |
---|---|
wp_safe_remote_request()wp-includes/http.php | Retrieves the raw response from a safe HTTP request. |
wp_safe_remote_get()wp-includes/http.php | Retrieves the raw response from a safe HTTP request using the GET method. |
wp_safe_remote_post()wp-includes/http.php | Retrieves the raw response from a safe HTTP request using the POST method. |
wp_safe_remote_head()wp-includes/http.php | Retrieves the raw response from a safe HTTP request using the HEAD method. |
wp_remote_request()wp-includes/http.php | Performs an HTTP request and returns its response. |
wp_remote_get()wp-includes/http.php | Performs an HTTP request using the GET method and returns its response. |
wp_remote_post()wp-includes/http.php | Performs an HTTP request using the POST method and returns its response. |
wp_remote_head()wp-includes/http.php | Performs an HTTP request using the HEAD method and returns its response. |
Version | Description |
---|---|
2.7.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.