Created
January 22, 2015 01:10
-
-
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
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_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