Available since: 3.0
searchwp_th_auto_filter_excerpt
View Parameters »When highlighting is enabled, SearchWP will automatically highlight excerpts. 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 excerpts. | |
add_filter( 'searchwp_th_auto_filter_excerpt', '__return_false' ); |
Parameters
Parameter | Type | Description |
---|---|---|
$enabled |
Boolean |
Whether to automatically highlight excerpts |