SearchWP

This Documentation is for SearchWP Version 3

Available since: 3.0

searchwp_fuzzy_threshold

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:

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

Parameters

Parameter Type Description
$threshold Integer

Minimum threshold to consider a fuzzy match

[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]