Last active
December 7, 2020 13:48
-
-
Save jchristopher/ac1c4ca58a8e565b4ef0f6125907bae2 to your computer and use it in GitHub Desktop.
Customize the minimum length of partial match tokens 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 | |
// Customize the minimum length of partial match tokens in SearchWP. | |
add_filter( 'searchwp\query\partial_matches\minimum_length', | |
function( $length, $args ) { | |
return 5; | |
}, | |
20, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment