Browse: Home / Hooks /

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 #

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 #

Changelog
Version Description
3.0.0 Introduced.