_wp_http_get_object()WP 2.7.0

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.

Return

WP_Http. HTTP Transport object.

Usage

_wp_http_get_object();

Changelog

Since 2.7.0 Introduced.

_wp_http_get_object() code WP 6.5.3

function _wp_http_get_object() {
	static $http = null;

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