Skip to content

Instantly share code, notes, and snippets.

@jchristopher
Created April 26, 2019 15:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jchristopher/d05fdc0e69767fccd0c49daa3636a111 to your computer and use it in GitHub Desktop.
Save jchristopher/d05fdc0e69767fccd0c49daa3636a111 to your computer and use it in GitHub Desktop.
Prevent SearchWP from expanding Shortcodes when highlighting
<?php
// Prevent SearchWP from expanding Shortcodes when highlighting.
add_filter( 'searchwp_th_do_shortcode', '__return_false' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment