apply_filters('wpstagerintegration_calendar_filter_taxonomy_label', string $label, string $taxonomy): string
apply_filters('wpstagerintegration_calendar_filter_taxonomy_label', string $label, string $taxonomy): stringDescription
Filters the filter taxonomy label.
Example:
// Modify the label for the 'eventlabels.name' field
add_filter( 'wpstagerintegration_calendar_filter_taxonomy_label', function( $label, $taxonomy ) {
// Check if the taxonomy matches
if ( $taxonomy === 'eventLabels.name' ) {
// Return a custom label
return 'Event labelled as...';
}
// Return the original label if the taxonoomy doesn't match
return $label;
}, 10, 2 );Parameters:
| Parameter | Type | Description |
|---|---|---|
$label | string | The label for the taxonomy. |
$taxonomy | string | The taxonomy to get the label for. |
Returns:
string The label for the taxonomy.
Information
| File | class-calendar.php line 2181 |
|---|
Full Code
/**
* Filters the filter taxonomy label.
*
* @param string $label The label for the taxonomy.
* @param string $taxonomy The taxonomy to get the label for.
*
* @return string The label for the taxonomy.
*
* @example
* // Modify the label for the 'eventlabels.name' field
* add_filter( 'wpstagerintegration_calendar_filter_taxonomy_label', function( $label, $taxonomy ) {
*
* // Check if the taxonomy matches
* if ( $taxonomy === 'eventLabels.name' ) {
*
* // Return a custom label
* return 'Event labelled as...';
* }
*
* // Return the original label if the taxonoomy doesn't match
* return $label;
* }, 10, 2 );
*/
$label = (string) apply_filters( 'wpstagerintegration_calendar_filter_taxonomy_label', $label, $taxonomy )💡 If you ever get stuck or have a question, please check our FAQs, our Free Integration Service, our paid Full Integration Service, or reach out to us!

Get WP Stager Integration
🎁 Limited offer: Use code WELCOME26 to get your first month for free!

