Available since: 3.0
searchwp_th_strip_shortcodes
View Parameters »Using this hook you can control whether SearchWP’s highlighter strips Shortcodes prior to generating an excerpt:
Note: This hook applies only when searchwp_th_do_shortcode
returns false
!
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's highlighter from stripping Shortcodes prior to highlighting. | |
add_filter( 'searchwp_th_strip_shortcodes', '__return_false' ); |
Parameters
Parameter | Type | Description |
---|---|---|
$enabled |
Boolean |
Whether to strip Shortcodes |