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.


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

	return $timeout_value;
Time in seconds until a request times out.
Default: 5
The request URL.

Список изменений

С версии 2.7.0 Введена.
С версии 5.1.0 The $url parameter was added.

Где вызывается хук

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

Где используется хук в ядре WP

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