learndash_next_global_quiz( boolean $url = true, int|null $user_id = null, int|null $id = null, array $exclude = array() )

Gets the next quiz for a course.


Description Description


Parameters Parameters

$url

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

Default value: true

$user_id

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

Default value: null

$id

(Optional) The ID of the resource.

Default value: null

$exclude

(Optional) An array of quiz IDs to exclude.

Default value: array()


Top ↑

Return Return

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


Top ↑

Source Source

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


			

Top ↑

Changelog Changelog

Changelog
Version Description
2.1.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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