Last active
January 13, 2021 14:30
-
-
Save jchristopher/f08cf9ac0535836d02eb0c4dd26023ef 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