-
-
Save searchwpgists/daa2a8c9025eb05c7b6b72f6f3539e88 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