learndash_is_lesson_complete

learndash_is_lesson_complete( int|null $user_id = null,  int $lesson_id,  int $course_id )

Checks if a lesson is complete.


Description #


Parameters #

$user_id

(int|null) (Optional) User ID. Defaults to the current logged-in user.

Default value: null

$lesson_id

(int) (Optional) Lesson ID.

$course_id

(int) (Optional) Course ID. Default 0.


Return #

(boolean) Returne true if the lesson is complete otherwise false.


Source #

File: includes/course/ld-course-progress.php


Changelog #

Changelog
Version Description
2.1.0 Introduced.