Browse: Home / Functions /


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 #


(int) (Required) Lesson ID.


(boolean) (Optional) Whether to show text.

Default value: false


(string) (Optional) The type of dots. Value can be 'dots', 'list' or 'array'.

Default value: 'dots'


(int|null) (Optional) User ID.

Default value: null


(int|null) (Optional) Course ID.

Default value: null

Return #

(string|array) The topic dots output or an array of topics.

Source #

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

Changelog #

Version Description
2.1.0 Introduced.