Available since: 3.0
searchwp_th_excluded_engines
View Parameters »When highlighting is enabled SearchWP will highlight searches for all engines. Using this hook you can provide a blacklist of engine names that should be excluded from the highlighter:
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 | |
add_filter( 'searchwp_th_excluded_engines', function( $engines ) { | |
// Prevent highlighting for 'supplemental' engine. | |
$engines[] = 'supplemental'; | |
return $engines; | |
} ); |
Parameters
Parameter | Type | Description |
---|---|---|
$engines |
Array |
Skip highlighting for these engines |