Please add the code below in your wp-content/plugins/wplms-customizer/wplms-customizer.php file :
add_filter('wplms_course_credits','customwplms_course_credits_array7',10,2); function customwplms_course_credits_array7($credits_html,$course_id){ if(is_user_logged_in()) { $user_id = get_current_user_id(); $course_user = bp_course_get_user_course_status($user_id,$course_id); if(wplms_user_course_active_check($user_id,$course_id)){ switch($course_user){ case 1: $course_status = __('START COURSE','vibe'); break; case 2: $course_status = __('CONTINUE COURSE','vibe'); break; case 3: $course_status = __('COURSE UNDER EVALUATION','vibe'); break; case 4: $finished_course_access = vibe_get_option('finished_course_access'); if(isset($finished_course_access) && $finished_course_access){ $course_status = __('FINISHED COURSE','vibe'); }else{ $course_status = __('COURSE FINISHED','vibe'); } break; default: $course_status = __('COURSE ENABLED','vibe').'<span>'.__('CONTACT ADMIN TO ENABLE','vibe'); break; } $credits_html=$course_status; } } return $credits_html; }