Skip to content

Instantly share code, notes, and snippets.

@jchristopher
Created January 22, 2015 01:10
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/3d865fdeb137e02f79ee to your computer and use it in GitHub Desktop.
Save jchristopher/3d865fdeb137e02f79ee to your computer and use it in GitHub Desktop.
Modify the number of times SearchWP will try to index an entry that failed to index
<?php
function my_searchwp_max_index_attempts( $number_of_attempts ) {
return 1; // only retry one time
}
add_filter( 'searchwp_max_index_attempts', 'my_searchwp_max_index_attempts' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment