learndash-topic-row-class

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 #

File: themes/ld30/templates/topic/partials/row.php


Examples #

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