Skip to content

Instantly share code, notes, and snippets.

@jchristopher
Created April 26, 2019 15:37
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save jchristopher/390f31c7cd4f4e79d5c49956e85a0c08 to your computer and use it in GitHub Desktop.
Prevent SearchWP's highlighter from stripping Shortcodes prior to highlighting
<?php
// Prevent SearchWP's highlighter from stripping Shortcodes prior to highlighting.
add_filter( 'searchwp_th_strip_shortcodes', '__return_false' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment