Browse: Home / Hooks /


apply_filters( 'learndash_status_icon',  string $markup,  string $status,  string $post_type,  array $args,  boolean $echo )

Filters status icon markup for the course element.

Description #

Parameters #


(string) Icon markup.


(string) The current item's status.


(string) What post type we're checking against so this can be used for courses, lessons, topics, and quizzes.


(array) The arguments to get the status icon.


(boolean) True to print the output and false to return the output.

Source #

File: themes/ld30/includes/helpers.php

Examples #

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

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

		// Always return $markup.
		return $markup;

Changelog #

Version Description
3.0.0 Introduced.