Skip to content

Instantly share code, notes, and snippets.

@jchristopher
Created January 23, 2015 15:22
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/b4960845a33a0175ee14 to your computer and use it in GitHub Desktop.
Save jchristopher/b4960845a33a0175ee14 to your computer and use it in GitHub Desktop.
Tell SearchWP to process all Shortcodes when indexing
<?php
function my_searchwp_do_shortcode( $do_shortcode, $post_being_indexed, $content_being_indexed, $meta_key_being_indexed ) {
return true;
}
add_filter( 'searchwp_do_shortcode', 'my_searchwp_do_shortcode', 10, 4 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment