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.


Parameters

$url

(string)(Required)URL to request.

$request

(array)(Required)Request data in WP_Http format.


Top ↑

Source

File: wp-includes/class-wp-http-requests-hooks.php

	public function __construct( $url, $request ) {
		$this->url     = $url;
		$this->request = $request;
	}

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.