Available since: 3.0
searchwp_th_auto_highlight_content
View Parameters »When highlighting is enabled, SearchWP will automatically highlight content. You can disable that functionality using 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 | |
// Prevent SearchWP from automatically highlighting content. | |
add_filter( 'searchwp_th_auto_highlight_content', '__return_false' ); |
Parameters
Parameter | Type | Description |
---|---|---|
$enabled |
Boolean |
Whether content should be automatically highlighted |