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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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' ); |
Parameters
Parameter | Type | Description |
---|---|---|
$enabled |
Boolean |
Whether partial matching is enabled for this engine |