Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Force SearchWP to perform fuzzy matching when finding partial matches
<?php
// Force SearchWP to perform fuzzy matching when finding partial matches.
add_filter( 'searchwp_partial_matches_force_fuzzy', function( $forced, $args ) {
// $args['engine'] is the engine being used
return true; // true/false
}, 20, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment