Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Modify the number of times SearchWP will try to index an entry that failed to index
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