Requests::set_defaults( string $url, array $headers, array|null $data, string $type, array $options ): array
Set the default values
Contents
Parameters
-
$url
string Required -
URL to request
-
$headers
array Required -
Extra headers to send with the request
-
$data
array|null Required -
Data to send either as a query string for GET/HEAD requests, or in the body for POST requests
-
$type
string Required -
HTTP request type
-
$options
array Required -
Options for the request
Return
array $options
Source
File: wp-includes/class-requests.php
.
View all references