WordPress at a glance
function is not described

_wp_http_get_object() WP 2.7.0

Returns the initialized WP_Http Object

No Hooks.

Return

WP_Http. HTTP Transport object.

Usage

_wp_http_get_object();

Notes

  • Static. WP_Http. $http

Changelog

Since 2.7.0 Introduced.

Code of wp http get object: wp-includes/http.php WP 5.2.3

<?php
function _wp_http_get_object() {
	static $http = null;

	if ( is_null( $http ) ) {
		$http = new WP_Http();
	}
	return $http;
}