Created
November 28, 2012 02:39
-
-
Save caratage/4158693 to your computer and use it in GitHub Desktop.
Remove shortcodes from the_content
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
// remove all shortcodes | |
add_filter('the_content', 'strip_shortcodes'); | |
// remove specific shortcode | |
remove_shortcode('gallery'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment