apply_filters( 'learndash-topic-row-class', string $row_class, object $topic )
Filters topic row CSS class. Used while listing a topic row.
Description #
Parameters #
- $row_class
-
(string) The list of topic row CSS classes.
- $topic
-
(object) The Topic object.
Source #
Examples #
Note: Extended code example below not guaranteed, you may need to consult with a developer
<?php /** * Example usage for learndash-topic-row-class filter. */ add_filter( 'learndash-topic-row-class', function( $row_class, $topic ) { // May add any custom logic using $row_class, $topic. // Always return $row_class. return $row_class; }, 10, 2 );
Changelog #
Version | Description |
---|---|
3.0.0 | Introduced. |