_wp_http_get_object
Returns the initialized WP_Http Object.
Description
(WP_Http) _wp_http_get_object();
Returns (WP_Http)
HTTP Transport object.
Usage
if ( !function_exists( '_wp_http_get_object' ) ) { require_once ABSPATH . WPINC . '/http.php'; } // NOTICE! Understand what this does before running. $result = _wp_http_get_object();
Defined (1)
The function is defined in the following location(s).
- /wp-includes/http.php
- function _wp_http_get_object() {
- static $http = null;
- if ( is_null( $http ) ) {
- $http = new WP_Http();
- }
- return $http;
- }