learndash_is_topic_complete( int $user_id = null, int $topic_id, int $course_id )
Checks if a topic is complete.
Description Description
Parameters Parameters
- $user_id
-
(Optional) User ID. Defaults to the current logged-in user.
Default value: null
- $topic_id
-
(Optional) Topic ID.
- $course_id
-
(Optional) Course ID. @since 3.20
Return Return
(boolean) Returns true if the topic is completed otherwise false.
Source Source
File: includes/course/ld-course-progress.php
Changelog Changelog
Version | Description |
---|---|
2.3.1 | Introduced. |