LLMS_Section::get_course()

Retrieve an instance of LLMS_Course for the sections’s parent course


Return Return

(LLMS_Course|null|false) Course object, null if get_post() fails, or false if LLMS_Course class isn't found.


Top ↑

Source Source

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

	public function get_course() {
		return llms_get_post( $this->get( 'parent_course' ) );
	}


Top ↑

Changelog Changelog

Changelog
Version Description
3.6.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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