-
-
Save searchwpgists/b4cf6610f2e6c528e0ce4259d03871cf to your computer and use it in GitHub Desktop.
Disable minimum character length for tokens (search terms) in SearchWP
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 | |
// Reduce SearchWP's minimum character length to 2 (default is 3). | |
add_filter( 'searchwp\tokens\minimum_length', function( $min ) { | |
return 2; | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment