Browse: Home / Functions /


learndash_next_lesson_quiz( boolean $url = true,  int|null $user_id = null,  int|null $lesson_id = null,  array $exclude = array() )

Gets the next quiz for current lesson for a user.

Description #

Parameters #


(boolean) (Optional) Whether to return URL for the next quiz.

Default value: true


(int|null) (Optional) User ID. Defaults to the current logged-in user.

Default value: null


(int|null) (Optional) Lesson ID.

Default value: null


(array) (Optional) An array of quiz IDs to exclude.

Default value: array()

Return #

(int|string) The ID or the URL of the quiz.

Source #

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

Changelog #

Version Description
2.1.0 Introduced.