Created
January 23, 2015 15:22
-
-
Save jchristopher/b4960845a33a0175ee14 to your computer and use it in GitHub Desktop.
Tell SearchWP to process all Shortcodes when indexing
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 | |
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