Rename "Events" in The Events Calendar
Changes the word "Event/Events" used across The Events Calendar's views and admin into your own term, such as Show/Shows, Class/Classes or Session/Sessions.
Opens WPIDE on
Code
$wpide_singular = 'Show'; // Replaces "Event".
$wpide_plural = 'Shows'; // Replaces "Events".
add_filter( 'tribe_event_label_singular', function () use ( $wpide_singular ) {
return $wpide_singular;
} );
add_filter( 'tribe_event_label_singular_lowercase', function () use ( $wpide_singular ) {
return strtolower( $wpide_singular );
} );
add_filter( 'tribe_event_label_plural', function () use ( $wpide_plural ) {
return $wpide_plural;
} );
add_filter( 'tribe_event_label_plural_lowercase', function () use ( $wpide_plural ) {
return strtolower( $wpide_plural );
} );
Notes
Only the labels change; the URL slug is set in Events > Settings > General.
How to add this snippet
- Install WPIDE on your WordPress site (it is free) and open Code Snippets.
- Use snippet above adds it from the library in one click. Or copy the code into a new snippet with the same code type.
- It is added inactive: review the code and settings, then switch it on.