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.
Source Source
File: includes/models/model.llms.section.php
public function get_course() { return llms_get_post( $this->get( 'parent_course' ) ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.6.0 | Introduced. |