Created
April 24, 2019 18:26
-
-
Save jchristopher/0a265d72f3f587b25536e224d29810c5 to your computer and use it in GitHub Desktop.
Change SearchWP's partial match (LIKE logic) minimum word length
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 | |
// Change SearchWP's partial match (LIKE logic) minimum word length. | |
add_filter( 'searchwp_like_min_length', function( $length ) { | |
return 4; | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment