Skip to content

Instantly share code, notes, and snippets.

@WerdsWords
Created July 26, 2013 18:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save WerdsWords/6091216 to your computer and use it in GitHub Desktop.
Save WerdsWords/6091216 to your computer and use it in GitHub Desktop.
#22: http_response_timeout
<?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' );
@manuelmeurer
Copy link

http_response_timeout is not a valid filter name! Use http_request_timeout instead!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment