SearchWP

This Documentation is for SearchWP Version 3

Available since: 3.0

searchwp_partial_matching_{$engine}

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.

<?php
// 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

Parameters

Parameter Type Description
$enabled Boolean

Whether partial matching is enabled for this engine

[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"]