Browse: Home / Hooks /

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/group.php


Examples #

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

 <?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;
	}
);
 

Changelog #

Changelog
Version Description
3.0.0 Introduced.