learndash-topic-row-wrapper-class

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 #

 <?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
);