Browse: Home / Hooks /


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

Filters navigation widget lesson item class

Description #

Parameters #


(string) List of lesson item CSS class.


(object) The lesson post object to evaluate

Source #

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

Examples #

Note: Extended code example below not guaranteed, you may need to consult with a developer

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

		// Always return $lesson_class.
		return $lesson_class;

Changelog #

Version Description Added second parameter $lesson.
3.0.0 Introduced.