Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Conditionally prevent the SearchWP 'failed index' notice from appearing
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