0. Install the WPLMS Customizer plugin
1. Go to following location : Wp admin -> Plugins -> editor -> wplms customizer -> customizer_class.php
2. Add the following line in the _construct function:


 

	
add_filter('wplms_course_details_widget',array($this,'wplms_show_unit_count_and_time'));

 


3. Now add the following function in the class:


   

function wplms_show_unit_count_and_time($course_details){
            $course_id = get_the_ID();
            $units=bp_course_get_curriculum_units($course_id);
            $course_details['units'] = '<li><i class="icon-grid-alt"></i>'.count($units).' Units</li>';
            $duration = 0;
            foreach($units as $unit){
                $duration = $duration + get_post_meta($unit,'vibe_duration',true);
            }
            $unit_duration_parameter = apply_filters('vibe_unit_duration_parameter',60);
            $course_details['units_duration'] = '<li><i class="icon-clock-1"></i>'.tofriendlytime(($duration*$unit_duration_parameter)).'</li>';
            return $course_details;
        }

 


Full customizer_class.php file :  https://gist.github.com/MrVibe/0daf4fd5d7e97b36c471 


Result :