Last active
October 15, 2021 10:46
-
-
Save Pebblo/5da1f1d8882ffac6925a332a8911d73e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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