WordPress at a glance
filter is not described

http_request_timeout filter-hook . WP 2.7.0

Filters the timeout value for an HTTP request.

Usage

add_filter( 'http_request_timeout', 'filter_function_name_59', 10, 2 );
function filter_function_name_59( $timeout_value, $url ){
	// filter...

	return $timeout_value;
}
$timeout_value(int)
Time in seconds until a request times out.
Default: 5
$url(string)
The request URL.

Notes

  • Since 5.1.0 The $url parameter was added.

Where the hook is called

WP_Http::request()
http_request_timeout
wp-includes/class-http.php 161
'timeout'             => apply_filters( 'http_request_timeout', 5, $url ),

Where the hook is used (in WP core)

wp-admin/includes/class-wp-importer.php 206
add_filter( 'http_request_timeout', array( $this, 'bump_request_timeout' ) );