learndash_lesson_topics_completed( int $lesson_id, boolean $mark_lesson_complete = false )
Checks if the lesson topics are completed.
Description #
Parameters #
- $lesson_id
-
(int) (Required) Lesson ID.
- $mark_lesson_complete
-
(boolean) (Optional) Whether to mark the lesson complete.
Default value: false
Return #
(boolean) Returns true if the lesson is completed otherwise false.
Source #
Changelog #
Version | Description |
---|---|
2.1.0 | Introduced. |