Requests::set_defaults( string $url, array $headers, array|null $data, string $type, array $options ): array

Set the default values


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

Top ↑

Return

array $options


Top ↑

Source

File: wp-includes/class-requests.php. View all references

View on Trac


Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.