learndash-nav-widget-lesson-class

apply_filters( 'learndash-nav-widget-lesson-class',  string $lesson_class )

Filters navigation widget lesson item class


Description #


Parameters #

$lesson_class

(string) List of lesson item CSS class.


Source #

File: themes/ld30/templates/widgets/navigation/lesson-row.php


Examples #

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

		// Always return $lesson_class.
		return $lesson_class;
	}
);