llms_get_post_parent_course( WP_Post|int $post )

Retrieve the parent course for a section, lesson, or quiz


Description Description


Parameters Parameters

$post

(Required) WP Post ID or instance of WP_Post.


Top ↑

Return Return

(LLMS_Course|null) Instance of the LLMS_Course or null.


Top ↑

Source Source

File: includes/llms.functions.core.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
3.6.0
3.37.14 Bail if $post is not an istance of LLMS_Post_Model. Use strict comparison.
3.17.7 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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