apply_filters( ‘http_request_timeout’, float $timeout_value, string $url )

In this article

Filters the timeout value for an HTTP request.

Parameters

$timeout_valuefloat
Time in seconds until a request times out. Default 5.
$urlstring
The request URL.

Source

'timeout'             => apply_filters( 'http_request_timeout', 5, $url ),

Changelog

VersionDescription
5.1.0The $url parameter was added.
2.7.0Introduced.

User Contributed Notes

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