Hello.
http://hhhcare.tdfdev.us/
I am trying to customize the content shown on the quiz completion/check results page. I can't seem to figure out where to do that.
All theme/plugins are up to date and I have cleared my cache multiple times.
I have added the following code in the php functions file in my child theme:
add_filter('wplms_course_marks',array($this,'wplms_course_passfail'),10,2);
function wplms_course_passfail($marks_html,$course_id){
$extract = explode('/',$marks_html);
$course_marks = intval($extract[0]);
$certificate_val = get_post_meta($course_id,'vibe_course_passing_percentage',true);
if(isset($certificate_val) && is_numeric($certificate_val)){
if($course_marks >= $certificate_val){
$marks_html = 'PASS';
}elseif($course_marks==0){
$marks_html = 'N.A';
}else{
$marks_html = 'FAIL';
}
}
return $marks_html;
}
And put the following on the /course-status/ page in the text (not visual) box:
Thank you for taking the quiz. In order to have passed the quiz, you must have answered 4 of the 5 questions correctly.
[pass_fail id=”768” pass="1"]
Congratulations! You have passed the quiz!
[/pass_fail]
[pass_fail id=”768” fail="1"]
Unfortunately, you have failed in the Quiz.
[/pass_fail]
Please advise. Credentials coming in private reply.