Created
August 4, 2016 04:02
-
-
Save amberhinds/db44de490e8ec7c6a4963b193ab896e5 to your computer and use it in GitHub Desktop.
Remove Divi Shortcodes from WordPress Content
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
add_filter('the_content', 'remove_divi_shortcodes'); | |
function remove_divi_shortcodes( $content ) { | |
$content = preg_replace('/\[\/?et_pb.*?\]/', '', $content); | |
return $content; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment