Browse: Home / Functions /

learndash_is_topic_notcomplete

learndash_is_topic_notcomplete( int|null $user_id = null,  array $topics = array(),  int $course_id )

Checks if a topic is not complete.


Description #


Parameters #

$user_id

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

Default value: null

$topics

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

Default value: array()

$course_id

(int) (Optional) Course ID.


Return #

(boolean) Returns true if the topic is not completed otherwise false.


Source #

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


Changelog #

Changelog
Version Description
3.2.0 Added $course_id
2.3.1 Introduced.