learndash_get_course_quiz_list( int|WP_Post|null $course = null, int|null $user_id = null )
Gets the quiz list output for a course.
Description #
Parameters #
- $course
-
(int|WP_Post|null) (Optional) The
WP_Postcourse object or course ID.Default value: null
- $user_id
-
(int|null) (Optional) User ID.
Default value: null
Return #
(array{sno:) int, id: int, post: WP_Post, permalink: string, class: string, status: string, sample: string, sub_title: string, ld_lesson_access_from: string}[] An array of quiz items.
Source #
Changelog #
| Version | Description |
|---|---|
| 5.0.0 | Removed the option to use learndash_get_course_quiz_list_legacy. |
| 2.1.0 | Introduced. |