Hide Check Answer from Large Text Ques

Go to wp-admin > Plugins > Editor > Select WPLMS Customizer Plugin > wplms-customizer.php
And Paste the code at the end before ?>

add_action('wplms_quiz_question','hide_check_answer_from_large_text_ques', 1);
function hide_check_answer_from_large_text_ques($ques_id){
$getmeta = get_post_meta($ques_id,'vibe_question_type',true);
if($getmeta == 'largetext') {
$actions = BP_Course_Action::init();
remove_action('wplms_quiz_question',array($actions,'check_answer'),10,2);
}
}

Leave a Reply

Your email address will not be published. Required fields are marked *