Created
March 23, 2020 19:40
-
-
Save jchristopher/43f4f442b7667ea9ceab93866037a47c to your computer and use it in GitHub Desktop.
Make SearchWP's fuzzy matching more strict
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 | |
// Make SearchWP's fuzzy matching more strict. | |
// The scale is 0-100 going from furthest match (lowest, 0) | |
// to closest match (highest, 100). | |
add_filter( 'searchwp\query\partial_matches\fuzzy\threshold', function( $threshold ) { | |
return 80; | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment