learndash_is_topic_complete( int $user_id = null, int $topic_id, int $course_id )
Checks if a topic is complete.
Description #
Parameters #
- $user_id
-
(int) (Optional) User ID. Defaults to the current logged-in user.
Default value: null
- $topic_id
-
(int) (Optional) Topic ID.
- $course_id
-
(int) (Optional) Course ID.
Return #
(boolean) Returns true if the topic is completed otherwise false.
Source #
Changelog #
Version | Description |
---|---|
3.2.0 | Added $course_id |
2.3.1 | Introduced. |