Skip to content

Instantly share code, notes, and snippets.

@jchristopher
Created January 23, 2015 16:28
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 jchristopher/6e9cee6101b47113a882 to your computer and use it in GitHub Desktop.
Save jchristopher/6e9cee6101b47113a882 to your computer and use it in GitHub Desktop.
Manipulate the arguments used in SearchWP's loopback calls
<?php
function my_searchwp_indexer_loopback_args( $args ) {
// $args are in the format of http://codex.wordpress.org/Function_Reference/wp_remote_post
// change the timeout
$args['timeout'] = 0.01;
return $args;
}
add_filter( 'searchwp_indexer_loopback_args', 'my_searchwp_indexer_loopback_args' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment