Best Blackhat Forum

Full Version: Need help with wpcourseware and Divi
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi I do not understand what to add to get it to work on posts and pages

In order to add Divi Builder Plugin functionality to course units, you will need to add the following code to your functions.php file. Remember to include all post types that you will be including like pages, posts etc...

function my_et_builder_post_types( $post_types ) {
$post_types[] = 'course_unit';
return $post_types;
}
add_filter( 'et_builder_post_types', 'my_et_builder_post_types' );


Thanks in advance
Reference URL's