Set unit time as minimum time to complete the unit

Add the following snippet in your child theme functions.php or wplms customizer -> wplms_customizer.php

PHP Code:
add_filter('wplms_unit_mark_complete','wplms_unit_miniumum_time',1,3);  
function wplms_unit_miniumum_time($mark_unit_html,$unit_id,$course_id){
  $user_id = get_current_user_id();
  $unit_time = get_post_meta($unit_id,'vibe_duration',true);
  $unit_duration_parameter = apply_filters('vibe_unit_duration_parameter',60);
  $unit_complete_check = get_user_meta($user_id,$unit_id,true);
  if(empty($unit_complete_check)){
     $mark_unit_html.=
      "<script>
          jQuery('.unit_content').on('unit_traverse',function(){
            jQuery('#mark-complete[data-unit=""]').addClass('disabled');
            setTimeout(function(){
                jQuery('#mark-complete').removeClass('disabled');
            }, ".($unit_time*$unit_duration_parameter).");
          });
      </script>"; 
  } 

  return $mark_unit_html; 
}