Browse: Home / Hooks /

learndash-course-row-class

apply_filters( 'learndash-course-row-class' )

The logic in learndash_course_progress() should return an array of elements. However, when scanning other calls to this function some check if the returned value is an empty string.


Description #


Source #

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


Examples #

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

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

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