Skip to content

Instantly share code, notes, and snippets.

@jchristopher
Created March 18, 2015 14:47
Show Gist options
  • Save jchristopher/a6756b7d59838df63be6 to your computer and use it in GitHub Desktop.
Save jchristopher/a6756b7d59838df63be6 to your computer and use it in GitHub Desktop.
Conditionally prevent the SearchWP 'failed index' notice from appearing
<?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