apply_filters( 'learndash_topic_dots_item', string $topic_dots, WP_Post $topic, bool $completed, string $type, mixed $topic_count )
Filters output of topic list dots.
Description #
Parameters #
Source #
Examples #
Note: Extended code example below not guaranteed, you may need to consult with a developer
<?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 #
| Version | Description |
|---|---|
| 2.1.0 | Introduced. |