Browse: Home / Functions /


learndash_is_lesson_notcomplete( int|null $user_id = null,  array $lessons = array(),  int $course_id )

Checks if a lesson is not complete.

Description #

Parameters #


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

Default value: null


(array) (Optional) An array of lesson IDs.

Default value: array()


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

Return #

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

Source #

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

Changelog #

Version Description
2.1.0 Introduced.