Created
August 9, 2017 01:37
-
-
Save jfarsen/beab40491848dc161436eaa6a86b95f2 to your computer and use it in GitHub Desktop.
Remove Divi shortcodes from 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
<?php | |
/** | |
* Remove Divi shortcodes from content | |
* | |
* @see http://victorfont.com/remove-divi-shortcodes-changing-themes/ | |
*/ | |
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
This plugins works really well. best solutions so far to move away from Divi/Avada etc..