Skip to content

Instantly share code, notes, and snippets.

@Pebblo
Last active October 15, 2021 10:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Pebblo/5da1f1d8882ffac6925a332a8911d73e to your computer and use it in GitHub Desktop.
Save Pebblo/5da1f1d8882ffac6925a332a8911d73e to your computer and use it in GitHub Desktop.
<?php // Do not include the opening PHP tag if you already have one.
add_filter('FHEE__EEM_Status__localized_status__translation_array', 'ee_tw_localized_status__translation_array');
function ee_tw_localized_status__translation_array( $translation_array ) {
//Upcoming
$translation_array[EE_Datetime::upcoming] = array(
__('upcoming', 'event_espresso'), //singular
__('upcoming', 'event_espresso'), //plural
);
//Active
$translation_array[EE_Datetime::active] = array(
__('active', 'event_espresso'), //singular
__('active', 'event_espresso'), //plural
);
//Expired
$translation_array[EE_Datetime::expired] = array(
__('expired', 'event_espresso'), //singular
__('expired', 'event_espresso'), //plural
);
return $translation_array;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment