-
-
Save theeventscalendar/58d7b5427d9a212338cc to your computer and use it in GitHub Desktop.
Change the word Event/Events globally on your calendar. This example uses Meeting/Meetings instead. Change the single and plural options below to whatever word you'd like to use.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Singular | |
add_filter( 'tribe_event_label_singular', 'event_display_name' ); | |
function event_display_name() { | |
return 'Meeting'; | |
} | |
add_filter( 'tribe_event_label_singular_lowercase', 'event_display_name_lowercase' ); | |
function event_display_name_lowercase() { | |
return 'meeting'; | |
} | |
// Plural | |
add_filter( 'tribe_event_label_plural', 'event_display_name_plural' ); | |
function event_display_name_plural() { | |
return 'Meetings'; | |
} | |
add_filter( 'tribe_event_label_plural_lowercase', 'event_display_name_plural_lowercase' ); | |
function event_display_name_plural_lowercase() { | |
return 'meetings'; | |
} |
This works great! Thank you so much!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Works for Venues too, just use
tribe_venue_label_singular
andtribe_venue_label_plural
.