WordPress – Elegant themes – Extra – Autoriser le Divi Builder pour les Custom Post Types – Enable Divi Builder for CPTs

Permettre le module divi-builder dans les custom post type

Enable Divi Builder for Custom Post Types CPT

functions.php


/**
**
**
** Divi builder pour formations-gratuites et formations-membres **/
function my_et_builder_post_types( $post_types ) {
$post_types[] = 'formations-gratuites';
$post_types[] = 'formations-membres';
return $post_types;
}
add_filter( 'et_builder_post_types', 'my_et_builder_post_types' );

Author: bejisan

Share This Post On