Created
February 1, 2017 22:11
-
-
Save danielpowney/48126a200eb2a7e4607788eb4d136ce5 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 strip_shortcode_from_excerpt( $content ) { | |
$content = strip_shortcodes( $content ); | |
return $content; | |
} | |
add_filter('the_excerpt', 'strip_shortcode_from_excerpt'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment