Created
July 26, 2013 18:38
-
-
Save WerdsWords/6091216 to your computer and use it in GitHub Desktop.
#22: http_response_timeout
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Extend http timeout duration to 30 seconds | |
* | |
* @param int $timeout The timeout duration in seconds. Default is 5. | |
* | |
* @return int The filtered timeout duration in seconds. | |
*/ | |
function wpdocs_extend_http_response_timeout( $timeout ) { | |
return 30; // seconds | |
} | |
add_filter( 'http_response_timeout', 'wpdocs_http_response_timeout' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http_response_timeout
is not a valid filter name! Usehttp_request_timeout
instead!