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.


Top ↑

Return Return

(bool)


Top ↑

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' ) ) );
	}


Top ↑

Changelog Changelog

Changelog
Version Description
3.18.0
3.16.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.