learndash_topic_dots( int $lesson_id, boolean $show_text = false, string $type = 'dots', int|null $user_id = null, int|null $course_id = null )
Outputs the LearnDash topic dots.
Description Description
Indicates the name of the topic and whether it’s been completed
Parameters Parameters
- $lesson_id
-
(Required) Lesson ID.
- $show_text
-
(Optional) Whether to show text.
Default value: false
- $type
-
(Optional) The type of dots. Value can be 'dots', 'list' or 'array'.
Default value: 'dots'
- $user_id
-
(Optional) User ID.
Default value: null
- $course_id
-
(Optional) Course ID.
Default value: null
Return Return
(array) The topic dots output or an array of topics.
Source Source
File: includes/course/ld-course-navigation.php
Changelog Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |