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