LLMS_Quiz_Attempt::init( int $quiz_id, int $lesson_id, mixed $student = null )

Initialize a new quiz attempt by quiz and lesson for a user


Description Description

If no user found throws an Exception.


Parameters Parameters

$quiz_id

(Required) WP Post ID of the quiz.

$lesson_id

(Required) WP Post ID of the lesson.

$student

(Optional) Accepts anything that can be passed to llms_get_student. If no user is passed the current user will be used. Default null.

Default value: null


Top ↑

Return Return

(obj)


Top ↑

Source Source

File: includes/models/model.llms.quiz.attempt.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
3.9.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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