Alert: 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.
Requests::__construct() WordPress Method
The Requests::__construct() method is used to create a new Requests object. This object can then be used to make HTTP requests. The constructor takes two arguments: a URL and an array of options. The URL is the URL of the website that you want to make a request to. The options array can be used to set various options for the request, such as the method (GET or POST), the data to be sent, and the headers.
Requests::__construct() #
This is a static class, do not instantiate it
Contents
Source
File: wp-includes/class-requests.php
private function __construct() {}
Expand full source codeCollapse full source codeView on TracView on GitHub