Skip to content

Instantly share code, notes, and snippets.

@vfontjr
Created May 2, 2020 13:48
Show Gist options
  • Save vfontjr/ec73a00291be191952ee6210c3028ebd to your computer and use it in GitHub Desktop.
Save vfontjr/ec73a00291be191952ee6210c3028ebd to your computer and use it in GitHub Desktop.
<?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