LLMS_Quiz::get_lesson()
Retrieve LLMS_Lesson for the quiz’s parent lesson.
Return Return
(LLMS_Lesson|false|null) The lesson object on success, false
if no id stored, and null
if the stored ID doesn't exist.
Source Source
File: includes/models/model.llms.quiz.php
$id = $this->get( 'lesson_id' ); if ( ! $id ) { return false; } return llms_get_post( $id ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.16.12 | Unknown. |
3.16.0 | Introduced. |