learndash-course-icon-class

apply_filters( 'learndash-course-icon-class',  string $course_icon_class,  WP_Post|array|null $course,  int $user_id )

Filters course icon CSS class.


Description #


Parameters #

$course_icon_class

(string) List of Course icon CSS class.

$course

(WP_Post|array|null) Course Object.

$user_id

(int) User ID.


Source #

File: themes/ld30/templates/shortcodes/user-status/course-row.php


Examples #

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

		// Always return $course_icon_class.
		return $course_icon_class;
	},
	10,
	3
);