A WordPress-centric search engine for devs and theme authors



_wp_http_get_object ›

Since2.7.0
Deprecatedn/a
_wp_http_get_object ( No parameters )
Access:
  • private
Returns:
  • (WP_Http) HTTP Transport object.
Defined at:
Codex:

Returns the initialized WP_Http Object



Source

function _wp_http_get_object() {
	static $http = null;

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