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 #
Examples #
Note: Extended code example below not guaranteed, you may need to consult with a developer
<?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
);