LLMS_Lesson::get_quiz()
Retrieve an object for the assigned quiz (if a quiz is assigned)
Return Return
(LLMS_Quiz|false) Returns false
if the lesson has no existing quiz assigned.
Source Source
File: includes/models/model.llms.lesson.php
public function get_quiz() { if ( $this->has_quiz() ) { $quiz = llms_get_post( $this->get( 'quiz' ) ); if ( $quiz ) { return $quiz; } } return false; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.3.0 | |
3.16.0 | Introduced. |