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 #
Indicates the name of the topic and whether it’s been completed
Parameters #
- $lesson_id
-
(int) (Required) Lesson ID.
- $show_text
-
(boolean) (Optional) Whether to show text.
Default value: false
- $type
-
(string) (Optional) The type of dots. Value can be 'dots', 'list' or 'array'.
Default value: 'dots'
- $user_id
-
(int|null) (Optional) User ID.
Default value: null
- $course_id
-
(int|null) (Optional) Course ID.
Default value: null
Return #
(string|array) The topic dots output or an array of topics.
Source #
Changelog #
Version | Description |
---|---|
2.1.0 | Introduced. |