Comments Arunpal started the conversationSeptember 1, 2022 at 10:39amHello,I have pointed to this issue earlier also that " How to Hide correct/incorrect answers in the quizzes of WPLSM" and in the solution, the team answered backed to add this code in your wplms-customizer.php file in wplms customizer plugin :add_filter('wplms_show_quiz_correct_answer',function($x){return false;},999999);I did the same... But nothing changed, still, the quiz showed correct/incorrect answers after submitting the quiz.So could anyone help me out...[deleted] repliedSeptember 2, 2022 at 3:08pmadd this code in your wplms-customizer.php file in wplms customizer plugin : add_filter('bp_course_api_get_user_single_quiz_data',function($data){ if(!empty($data['meta']['questions'])){ foreach ($data['meta']['questions'] as $key => $q) { $data['meta']['questions'][$key]['show_correct_answer'] = false; } } return $data;}); Sign in to reply ...
Hello,
I have pointed to this issue earlier also that " How to Hide correct/incorrect answers in the quizzes of WPLSM" and in the solution, the team answered backed to add this code in your wplms-customizer.php file in wplms customizer plugin :
add_filter('wplms_show_quiz_correct_answer',function($x){return false;},999999);
I did the same... But nothing changed, still, the quiz showed correct/incorrect answers after submitting the quiz.
So could anyone help me out...
add this code in your wplms-customizer.php file in wplms customizer plugin :
add_filter('bp_course_api_get_user_single_quiz_data',function($data){
if(!empty($data['meta']['questions'])){
foreach ($data['meta']['questions'] as $key => $q) {
$data['meta']['questions'][$key]['show_correct_answer'] = false;
}
}
return $data;
});