Warning: This method has been deprecated. Use LLMS_Lesson::get( ‘parent_course’ ), via LLMS_Post_Model::get(), instead.
LLMS_Lesson::get_parent_course()
Get parent course id
Return Return
(int)
Source Source
File: includes/models/model.llms.lesson.php
public function get_parent_course() { llms_deprecated_function( __METHOD__, '5.7.0', __CLASS__ . '::get( \'parent_course\' )' ); return absint( get_post_meta( $this->get( 'id' ), '_llms_parent_course', true ) ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
5.7.0 | Use LLMS_Lesson::get( 'parent_course' ) , via LLMS_Post_Model::get(), instead. |
3.0.0 | Unknown. |
1.0.0 | Introduced. |