Created
January 22, 2015 01:29
-
-
Save jchristopher/0f3a3ea5ec926cca1fe4 to your computer and use it in GitHub Desktop.
Modify the HTTP request timeout used by SearchWP's loopback requests
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 | |
function my_searchwp_timeout( $timeout ) { | |
// 1s timeout | |
return 1; | |
} | |
add_filter( 'searchwp_timeout', 'my_searchwp_timeout' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment