WordPress filter hook · part of WordPress core
http_request_timeout
A WordPress core filter that 15 plugins also fire themselves, running on 972K+ sites between them.
“Sets the HTTP timeout, in seconds, for the request.”
How to use http_request_timeout
It's a filter: your callback receives the value and 1 more argument, and must return the (changed) value.
Add this to your theme's functions.php or a small custom plugin:
add_filter( 'http_request_timeout', function( $value, $url ) {
// Change $value here.
return $value;
}, 10, 2 );Argument names come from Constant Contact Forms's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
This hook is fired by WordPress core too. Official reference on developer.wordpress.org →
15 plugins that fire http_request_timeout
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
Fluent Forms800,000+ installs
apply_filters( 'http_request_timeout', 5 )app/Modules/Ai/FluentFormAIAPI.php:22 -
Reviews Feed100,000+ installs
apply_filters( 'http_request_timeout', 5 )class/Common/Integrations/SBRelay.php:271 -
Uncanny Automator40,000+ installs
apply_filters( 'http_request_timeout', $this->http_request_timeout, $url )src/core/services/loopable/data-integrations/xml-to-json-converter.php:60 -
Constant Contact Forms20,000+ installs
apply_filters( 'http_request_timeout', 30, $url )includes/class-api.php:400 -
ElasticPress8,000+ installs
apply_filters( 'http_request_timeout', $default_request_timeout, Utils\get_host() )includes/classes/StatusReport/ElasticPress.php:117 -
ELEX WooCommerce Bulk Edit Products, Prices & Attributes (Basic)4,000+ installs
apply_filters( 'http_request_timeout', 30, $url )elex-bulk-edit-woocommerce-products-basic.php:80 -
AI Services100+ installs
apply_filters( 'http_request_timeout', 5, $url )third-party/felixarntz/wp-oop-plugin-lib/src/HTTP/HTTP.php:286 -
Bloom for Publishers90+ installs
apply_filters( 'http_request_timeout', 30, $url )lib/lib.php:30 -
CardanoPress40+ installs
apply_filters( 'http_request_timeout', 5, '' )src/Actions/WalletAction.php:402 -
Is it Snowing?10+ installs
apply_filters( 'http_request_timeout', 30 )includes/class-weather-api.php:82 -
Promo10+ installs
apply_filters( 'http_request_timeout', 10 )app/functions.php:9 -
AdFever for WordPress10+ installs
apply_filters( 'http_request_timeout', 5 )lib/wp-compat/http.php:223 -
Cute MediaInfoFewer than 10 installs
apply_filters( 'http_request_timeout', 5, $url )admin/includes/scrap/class-cutemi-wp-http.php:23 -
ElasticProbeFewer than 10 installs
apply_filters( 'http_request_timeout', $default_request_timeout, Utils\get_host() )includes/classes/StatusReport/ElasticPress.php:97 -
TurnKey DirectoriesFewer than 10 installs
apply_filters( 'http_request_timeout', 5, $url )includes/class-turnkeydir-mapillary-api.php:4021
Need a customisation built on this hook?
Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.