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.
Return Return
(LLMS_Course|null) Instance of the LLMS_Course or null.
Source Source
File: includes/llms.functions.core.php
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. |