Prevent SearchWP from outputting notice about search query corrections
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 | |
// Prevent SearchWP from outputting notice about search query corrections. | |
add_filter( 'searchwp_auto_output_revised_search_query', function( $enabled, $args ) { | |
// $args contains the search query arguments for the search | |
// $args['type'] will be 'did-you-mean' for "Did you mean?" corrections | |
return false; | |
}, 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment