Browse: Home / Functions /

learndash_user_quiz_has_completed

learndash_user_quiz_has_completed( integer $user_id,  integer $quiz_id,  integer $course_id )

Check if user has completed/passed a specific Quiz.


Description #

Can check for course quizzes or global quizzes.


Parameters #

$user_id

(integer) (Required) User ID.

$quiz_id

(integer) (Required) Quiz Post ID.

$course_id

(integer) (Required) Course Post ID.


Return #

(boolean)


Source #

File: includes/classes/class-ldlms-model-user-quiz-progress.php


Changelog #

Changelog
Version Description
3.4.0 Introduced.