_wp_http_get_object()

Returns the initialized WP_Http Object


Return

(WP_Http) HTTP Transport object.


Top ↑

Source

File: wp-includes/http.php

function _wp_http_get_object() {
	static $http = null;

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


Top ↑

Changelog

Changelog
Version Description
2.7.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.