learndash_is_quiz_notcomplete( int|null $user_id = null, array|null $quizzes = null, boolean $return_incomplete_quiz_ids = false, int $course_id )

Checks whether a quiz is not completed for a user.


Description Description

Checks against quizzes in user meta and passing percentage of the quiz itself


Parameters Parameters

$user_id

(Optional) User ID for quizzes.

Default value: null

$quizzes

(Optional) Quiz ID to search user quizzes.

Default value: null

$return_incomplete_quiz_ids

(Optional) If true will return the array of incomplete quizes. Default is false.

Default value: false

$course_id

(Optional) The Course ID to match. If -1 is passed then course match is not performed. Default 0.


Top ↑

Return Return

(bool) Returns true if the quiz(es) NOT complete otherwise false.


Top ↑

Source Source

File: includes/course/ld-course-progress.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
2.3.1 Added $return_incomplete_quiz_ids parameter.
2.1.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.