wordpress / latest / functions / _wp_http_get_object.html

_wp_http_get_object(): WP_Http

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.

Returns the initialized WP_Http Object

Return

WP_Http HTTP Transport object.

Source

File: wp-includes/http.php. View all references

function _wp_http_get_object() {
	static $http = null;

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

Used By

Used By Description

Changelog

Version Description
2.7.0 Introduced.

© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/_wp_http_get_object