Available since: 3.0
searchwp_th_partial_matches
View Parameters »When highlighting is enabled, SearchWP will highlight only exact matches by default. If instead you would prefer that partial matches are highlighted you can use this hook:
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 | |
// Tell SearchWP to use partial matches when highlighting. | |
add_filter( 'searchwp_th_partial_matches', '__return_true' ); |
Parameters
Parameter | Type | Description |
---|---|---|
$partial |
Boolean |
Whether to highlight partial matches |