yanknudtskov
7/19/2016 - 2:32 PM

Remove Divi Shortcodes from Content

Remove Divi Shortcodes from Content

<?php

function remove_divi_shortcodes( $content ) {
    $content = preg_replace('/\[\/?et_pb.*?\]/', '', $content);
    return $content;
}