Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

_wp_http_get_object() WordPress Function

The wp_http_get_object function is used to get an HTTP object. This function is used to get an HTTP object from a URL. The object is returned as an object.

_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
VersionDescription
2.7.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.