This Documentation is for SearchWP Version 3

Available since: 3.0


View Parameters »

When finding partial matches (specifically when finding fuzzy matches) SearchWP will limit fuzzy matches depending on how closely terms sound alike on a scale from 0 to 100. You can customize the threshold using this hook:

// Increase SearchWP's fuzzy matching threshold.
add_filter( 'searchwp_fuzzy_threshold', function( $threshold ) {
return 80;
} );
view raw functions.php hosted with ❤ by GitHub


Parameter Type Description
$threshold Integer

Minimum threshold to consider a fuzzy match