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)


Top ↑

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 ) );
	}


Top ↑

Changelog 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.

Top ↑

User Contributed Notes User Contributed Notes

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