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
390 391 392 393 394 395 396 397 398 | 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. |