learndash_is_previous_complete( WP_Post $post )
Checks if the previous topic or lesson is complete.
Description Description
Parameters Parameters
- $post
-
(Required) The
WP_Post
object of lesson or topic.
Return Return
(int) Returns 1 if the previous lesson or topic is completed otherwise 0.
Source Source
File: includes/course/ld-course-progress.php
Changelog Changelog
Version | Description |
---|---|
3.4.0 | Introduced. |