learndash-lesson-row-class

apply_filters( 'learndash-lesson-row-class',  string $lesson_class,  object $lesson )

Filters lesson row CSS class names.


Description #


Parameters #

$lesson_class

(string) Lesson row CSS class names.

$lesson

(object) The lesson post object to evaluate


Source #

File: themes/ld30/includes/helpers.php


Examples #

 <?php
/**
 * Example usage for learndash-lesson-row-class filter.
 */
add_filter(
	'learndash-lesson-row-class',
	function( $lesson_class, $lesson ) {
		// May add any custom logic using $lesson_class, $lesson.

		// Always return $lesson_class.
		return $lesson_class;
	},
	10,
	2
);