learndash_label_to_lower

apply_filters( 'learndash_label_to_lower',  string $label,  string $key )

Filters value of label after converting it to the lowercase. Used to filter label values in label_to_lower function.


Description #


Parameters #

$label

(string) Label entered on settings page.

$key

(string) Key name of setting field.


Source #

File: includes/class-ld-custom-label.php


Examples #

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

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