Skip to content

Instantly share code, notes, and snippets.

@vfontjr
Created May 2, 2020 13:48
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
<?php
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