_wp_http_get_object()
Returns the initialized WP_Http Object
Internal function — this function is designed to be used by the kernel itself. It is not recommended to use this function in your code.
No Hooks.
Returns
WP_Http. HTTP Transport object.
Usage
_wp_http_get_object();
Changelog
| Since 2.7.0 | Introduced. |
_wp_http_get_object() wp http get object code WP 6.9.1
function _wp_http_get_object() {
static $http = null;
if ( is_null( $http ) ) {
$http = new WP_Http();
}
return $http;
}