I see this KB : https://theeventscalendar.com/knowledgebase/change-the-wording-of-any-bit-of-text-or-string/
but it doesn’t seem to work for me here : almostjanet.com/events
Here’s my function.php code :
function tribe_custom_theme_text ( $translation, $text, $domain ) {
$custom_text = array(
'Upcoming Events' => 'Upcoming Shows',
);
// If this text domain starts with "tribe-", "the-events-", or "event-" and we have replacement text
if( (strpos($domain, 'tribe-') === 0 || strpos($domain, 'the-events-') === 0 || strpos($domain, 'event-') === 0) && array_key_exists($translation, $custom_text) ) {
$translation = $custom_text[$translation];
}
return $translation;
}
add_filter('gettext', 'tribe_custom_theme_text', 20, 3);
Please advise.