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 #
- $topic_dots
-
(string) Topic dots output.
- $topic
-
(WP_Post) Topic WP_Post object to be checked.
- $completed
-
(bool) A flag if a topic is completed or not.
- $type
-
(string) Type of dots. Value can dots or list.
- $topic_count
-
(mixed) Count of topics.
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. |