Remove Hours from Curriculum units time if hours is 0

1. Go to WP Admin -> Plugins -> Editor -> wplms customizer -> customizer_class.php

2. Add below code in _construct function :

PHP Code:

add_filter('wplms_curriculum_time_filter',array($this,'wplms_custom_curriculum_time_filter_remove_hours'),10,2);

3. Add below code in Class :

PHP Code:
function wplms_custom_curriculum_time_filter_remove_hours($html,$minutes){
           
            if($minutes < 60){
            $html = '<span><i class="icon-clock"></i>'.$minutes.' '.__('minutes','vibe').'</span>';
            }
 
        return $html;
        }