WP_HTTP_Requests_Hooks::__construct() WordPress Method
The WP_HTTP_Requests_Hooks::__construct() method is used to initialize the class and set up the properties needed for it to work.
WP_HTTP_Requests_Hooks::__construct( string $url, array $request ) #
Constructor.
Contents
Parameters
- $url
(string)(Required)URL to request.
- $request
(array)(Required)Request data in WP_Http format.
Source
File: wp-includes/class-wp-http-requests-hooks.php
public function __construct( $url, $request ) { $this->url = $url; $this->request = $request; }
Expand full source codeCollapse full source codeView on TracView on GitHub