Determine whether SearchWP should be forced to use fuzzy logic even if partial matches are found
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 | |
function my_searchwp_partial_matches_force_fuzzy( $return, $args ) { | |
// $args contains information about this request | |
// - engine | |
// TODO: customize $return to match whether fuzzy logic should be forced | |
// when partial matches are already found | |
return $return; | |
} | |
add_filter( 'searchwp_partial_matches_force_fuzzy', 'my_searchwp_partial_matches_force_fuzzy', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment