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.
Contents
Description #
Source #
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;
}
);