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.

Top ↑

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;

Top ↑

Changelog Changelog

Version Description
3.16.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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