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

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.