Created
October 19, 2021 09:00
-
-
Save Pebblo/6405639765420c31e2ec976b15220105 to your computer and use it in GitHub Desktop.
Example of changing 'Upcoming' to 'Registration Open'.
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
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( | |
'registration open', //singular | |
'registration open', //plural | |
); | |
// You need to return the localized statuses to the filter. | |
return $translation_array; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment