learndash_topic_dots_item

apply_filters( 'learndash_topic_dots_item',  string $topic_dots,  WP_Post $topic,  string $type,  mixed $topic_count )

Filters output of topic list dots.


Description #


Parameters #

$topic_dots

(string) Topic dots output.

$topic

(WP_Post) Topic WP_Post object to be checked.

$type

(string) Type of dots. Value can dots or list.

$topic_count

(mixed) Count of topics.


Source #

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


Examples #

 <?php
/**
 * Example usage for learndash_topic_dots_item filter.
 */
add_filter(
	'learndash_topic_dots_item',
	function( $topic_dots, $topic, $type, $topic_count ) {
		// May add any custom logic using $topic_dots, $topic, $type, $topic_count.

		// Always return $topic_dots.
		return $topic_dots;
	},
	10,
	4
);
 

Changelog #

Changelog
Version Description
2.1.0 Introduced.