Created
March 24, 2020 01:22
-
-
Save jchristopher/e0bb26ffc7aab75621862a75d0d5e7de to your computer and use it in GitHub Desktop.
Disable SearchWP's "Did you mean?" functionality
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 | |
// Disable SearchWP's "Did you mean?" functionality. | |
add_filter( 'searchwp\query\partial_matches\did_you_mean', function( $enabled, $args ) { | |
return false; | |
}, 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment