Created
September 25, 2019 14:16
-
-
Save jchristopher/906ed1fb9cb799102478a5d7ab08c00f to your computer and use it in GitHub Desktop.
Programmatically enable "Did you mean?" search corrections in SearchWP 3.1+
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 | |
// Enables "Did you mean?" search corrections in SearchWP. | |
add_filter( 'searchwp_do_suggestions', function( $enabled, $args ) { | |
// $args contains the search arguments. | |
return true; | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment