learndash-course-list-shortcode-course-class

apply_filters( 'learndash-course-list-shortcode-course-class',  string $course_class )

Filters course list shortcode course CSS class. Used to add CSS class to the wrapper of each course item


Description #


Parameters #

$course_class

(string) Course item CSS class


Source #

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


Examples #

 <?php
/**
 * Example usage for learndash-course-list-shortcode-course-class filter.
 */
add_filter(
	'learndash-course-list-shortcode-course-class',
	function( $course_class ) {
		// May add any custom logic using $course_class.

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