Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@cliffordp
Forked from theeventscalendar/functions.php
Created May 17, 2016 03:18
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cliffordp/76f72b18aaf185fdbfe2a0f32e0250bc to your computer and use it in GitHub Desktop.
Save cliffordp/76f72b18aaf185fdbfe2a0f32e0250bc 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';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment