Fix remove divi shortcode crap
This commit is contained in:
@@ -28,6 +28,13 @@ function hello_elementor_child_enqueue_scripts() {
|
||||
}
|
||||
add_action( 'wp_enqueue_scripts', 'hello_elementor_child_enqueue_scripts' );
|
||||
|
||||
/** Remove divi shortcode crap **/
|
||||
|
||||
function remove_divi_shortcodes( $content ) {
|
||||
$content = preg_replace('/\[\/?et_pb.*?\]/', '', $content);
|
||||
return $content;
|
||||
}
|
||||
add_filter('the_content', 'remove_divi_shortcodes', 20, 1);
|
||||
|
||||
/********** Autres personnalisations **********/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user