Show the actual course duration instead of remaining time in course details

Please add the given code in your wplms-customizer.php file in wplms-customizer file :

add_filter('wplms_course_details_widget','custom_wplms_course_details_widget_duration',99);
function custom_wplms_course_details_widget_duration($course_details){
  $course_id=get_the_ID();
  $val=get_post_meta($course_id,'vibe_duration',true);
  $course_duration_parameter = apply_filters('vibe_course_duration_parameter',86400,$course_id);
  $course_details['time']='<li><i class="icon-clock"></i>'.tofriendlytime($val*$course_duration_parameter).'</li>';
return $course_details;
}

 

Leave a Reply

Your email address will not be published. Required fields are marked *