Divi functionality on WP Courseware units

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' );

Still need help? Contact Us Contact Us