Created
September 25, 2015 20:41
-
-
Save jeffreyd00/a5188654c9f40eb7ee87 to your computer and use it in GitHub Desktop.
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
/* Search WP Functions | |
----------------------------------------------------------- */ | |
/* includes search terms that are close in spelling to those indexed */ | |
function my_fuzzy_word_length() | |
{ | |
return 4; | |
} | |
add_filter( 'searchwp_fuzzy_min_length', 'my_fuzzy_word_length' ); | |
/* 65% match primitive spell checking */ | |
function my_fuzzy_threshold() | |
{ | |
return 65; | |
} | |
add_filter( 'searchwp_fuzzy_threshold', 'my_fuzzy_threshold' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment