W3cubDocs

/WordPress

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.

Source

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

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

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_http_requests_hooks/__construct