Skip to content

Instantly share code, notes, and snippets.

@Pebblo
Created October 19, 2021 09:00
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/6405639765420c31e2ec976b15220105 to your computer and use it in GitHub Desktop.
Save Pebblo/6405639765420c31e2ec976b15220105 to your computer and use it in GitHub Desktop.
Example of changing 'Upcoming' to 'Registration Open'.
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