Alert: 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.
_wp_http_get_object() WordPress Function
The wp_http_get_object function is used to get an HTTP object. This function is used to get an HTTP object from a URL. The object is returned as an object.
_wp_http_get_object() #
Returns the initialized WP_Http Object
Return
(WP_Http) HTTP Transport object.
Source
File: wp-includes/http.php
function _wp_http_get_object() { static $http = null; if ( is_null( $http ) ) { $http = new WP_Http(); } return $http; }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
2.7.0 | Introduced. |