Last active
November 29, 2017 07:06
-
-
Save hbaker/121ef70f0ee2907dc13936b13bf899e0 to your computer and use it in GitHub Desktop.
Divi Theme - Add Divi Builder to Custom Post Types
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ADD DIVI BUILDER TO CUSTOM POST TYPES | |
function ze_builder_cpt( $post_types ) { | |
$post_types[] = 'your_custom_post_type_slug'; | |
return $post_types; | |
} | |
add_filter( 'et_builder_post_types', 'ze_builder_cpt' ); | |
// END ADD DIVI BUILDER TO CUSTOM POST TYPES |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How to Add Divi Builder to Custom Post Types
This snippet assumes you are using the Divi theme in WordPress, and you have a custom post type that you would like to add Divi Builder functionality to.
your_custom_post_type_slug
to the name of your custom post type slug