Skip to content

Instantly share code, notes, and snippets.

@theeventscalendar
Forked from ckpicker/gist:ba9b617afdbdb3867159
Last active May 17, 2016 03:18
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save theeventscalendar/58d7b5427d9a212338cc to your computer and use it in GitHub Desktop.
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.
<?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';
}
@nciske
Copy link

nciske commented Apr 19, 2016

Works for Venues too, just use tribe_venue_label_singular and tribe_venue_label_plural.

@JavierMaldonadoR
Copy link

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