LLMS_Lesson::get_quiz()
Retrieve an object for the assigned quiz (if a quiz is assigned )
Description Description
Return Return
(obj|false)
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 | Introduced. |
User Contributed Notes User Contributed Notes
Permalink: