learndash_no_price_price_label

apply_filters( 'learndash_no_price_price_label',  string $label )

Filters label to be displayed when there is no price set for a course or it is closed.


Description #


Parameters #

$label

(string) The label displayed when there is no price.


Source #

File: themes/ld30/templates/modules/infobar/course.php


Examples #

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

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