learndash_status_icon

apply_filters( 'learndash_status_icon',  string $markup,  string $status )

Filters status icon markup for the course element.


Description #


Parameters #

$markup

(string) Icon markup.

$status

(string) The current item's status.


Source #

File: themes/ld30/includes/helpers.php


Examples #

 <?php
/**
 * Example usage for learndash_status_icon filter.
 */
add_filter(
	'learndash_status_icon',
	function( $markup, $status ) {
		// May add any custom logic using $markup, $status.

		// Always return $markup.
		return $markup;
	},
	10,
	2
);