I am using Event Espresso 4 with a Genesis StudioPress Theme on the latest version of WordPress. I would like to change the word “Tickets” to “Registrations”, and have tried all the directions for a site-specific plugin, functions.php, and the Quick Localization plugin. None of them have worked.
Here is the code I used in functions.php and the site-specific plugin: function mycustom_filter_gettext( $translated, $original, $domain ) {
// This is an array of original strings
// and what they should be replaced with
$strings = array(
'Tickets' => 'Registrations',
'Confirm and go to payment page' => 'Complete registration',
'Ticket' => 'Registration',
// Add some more strings here
);
// See if the current string is in the $strings array
// If so, replace its translation
if ( isset( $strings[$original] ) ) {
// This accomplishes the same thing as __()
// but without running it through the filter again
$translations = get_translations_for_domain( $domain );
$translated = $translations->translate( $strings[$original] );
}
Now is there any way to completely remove the line “* Please note that a maximum number of 10 registrations can be purchased for this event per order.” via functions? It did not look like it had its own CSS element to hide.
Thank you! I was just worried that might some other crucial text somewhere in Event Espresso since it was hiding text based on size/color/format.
Viewing 4 reply threads
The support post ‘Change wording of Tickets’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.
Support forum for Event Espresso 3 and Event Espresso 4.