Okay
  Print

disable retakes when user passes quiz

add this code in your wplms-customizer.php file in wplms customizer plugin : 

add_filter('wplms_quiz_retake_count','remove_retake_button_if_user_passed_the_quiz',10,4);
function remove_retake_button_if_user_passed_the_quiz($retakes,$quiz_id,$course,$user_id){
 $user_marks=get_post_meta($quiz_id,$user_id,true);
 $quiz_passing_marks=get_post_meta($quiz_id,'vibe_quiz_passing_score',true);
 if(empty($quiz_passing_marks))
    return $retakes;
 if($user_marks >= $quiz_passing_marks){
   return 0;
}
 
 else
   return $retakes;
}