Retrieve LLMS_Lesson for the quiz’s parent lesson.

Return Return

(LLMS_Lesson|false|null) The lesson object on success, false if no id stored, and null if the stored ID doesn't exist.

Top ↑

Source Source

File: includes/models/model.llms.quiz.php

	public function get_lesson() {
		$id = $this->get( 'lesson_id' );
		if ( ! $id ) {
			return false;
		return llms_get_post( $id );

Top ↑

Changelog Changelog

Version Description
3.16.12 Unknown.
3.16.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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