LLMS_Lesson::is_quiz_enabled()
Determines if a quiz is enabled for the lesson
Description Description
Lesson must have a quiz and the quiz must be enabled.
Return Return
(bool)
Source Source
File: includes/models/model.llms.lesson.php
public function is_quiz_enabled() { return ( $this->has_quiz() && llms_parse_bool( $this->get( 'quiz_enabled' ) ) && 'publish' === get_post_status( $this->get( 'quiz' ) ) ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.18.0 | |
3.16.0 | Introduced. |