learndash_is_item_complete( int|WP_Post|null $post = null, int|null $user_id = null, int|null $course_id = null )
Checks if any LearnDash content type is complete.
Description Description
Works on lessons or topics, single function for simpler logic in the templates.
Parameters Parameters
- $post
-
(Optional)
WP_Post
object. Default to global $post.Default value: null
- $user_id
-
(Optional) The user to check against.
Default value: null
- $course_id
-
(Optional) The course to check against (required for reusable content).
Default value: null
Return Return
(boolean) Returns true if the item is complete otherwise false.
Source Source
File: themes/ld30/includes/helpers.php
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |