SearchWP

This Documentation is for SearchWP Version 3

Available since: 3.0

searchwp_fuzzy_digit_threshold

View Parameters »

When finding partial matches (specifically when finding fuzzy matches) SearchWP will take an extra step to avoid applying fuzzy logic to terms that contain too many digits. This is because of how SearchWP’s fuzzy matching works: it finds linguistic similarities between words. When there are too many digits in a term fuzzy matching will never succeed.

You have control over the threshold SearchWP uses when defining ‘too many’ digits:

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

Parameters

Parameter Type Description
$threshold Integer

Threshold to use

[wpforms id="3080"]