Created
March 18, 2015 14:47
-
-
Save jchristopher/a6756b7d59838df63be6 to your computer and use it in GitHub Desktop.
Conditionally prevent the SearchWP 'failed index' notice from appearing
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_failed_index_notice( $show_notice ) { | |
// TODO: set $show_notice to false if you want to prevent the notice from showing | |
return $show_notice; | |
} | |
add_filter( 'searchwp_failed_index_notice', 'my_searchwp_failed_index_notice' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment