This Documentation is for SearchWP Version 3

Available since: 3.0


View Parameters »

By default SearchWP will apply partial matching logic to all engines when partial matching has been enabled. Using this hook you can control whether specific engines utilize partial matching.

// Prevent partial matching on the 'default' SearchWP engine only.
// NOTE: the engine name in this hook tag is: default
add_filter( 'searchwp_partial_matching_default', '__return_false' );
view raw functions.php hosted with ❤ by GitHub


Parameter Type Description
$enabled Boolean

Whether partial matching is enabled for this engine