As of Event Espresso 4.8.8, this is no longer needed as the word "ticket" has been removed from the single event pages.
<?php
//* Do NOT include the opening php tag
//* Change messaging for ticket to registration
function ee_change_ticket_messaging_registration( $translated, $original, $domain ) {
$strings = array(
//'Available Tickets' => 'Available Registrations',
//' / ticket' => ' / registration',
//'Details' => 'Registration Details',
//'Sale Dates' => 'Registration Sale Dates',
//'Please note that a maximum number of %d tickets can be purchased for this event per order.' => 'Please note that a maximum number of %d registrations can be purchased for this event per order.',
'The dates when this option is available for purchase.' => 'The dates when this registration is available for purchase.',
'This option allows access to the following event dates and times. "Remaining" shows the number of this ticket type left:' => 'This registration allows access to the following event dates and times. "Remaining" shows the number of this registration type left:',
//'Sold' => 'This Registration<br/>Sold',
//'Remaining' => 'Registrations Remaning',
'Total%sSold' => 'Total Registrations<br/>Sold',
'You need to select a ticket quantity before you can proceed.' => 'You need to select a registration quantity before you can proceed.',
'No tickets were added for the event.' => 'No registrations were added for the event.',
'Name and Description' => 'Registration Name and Description',
'The following checkboxes allow you to use the above information for only the selected additional tickets/attendees.' => 'The following checkboxes allow you to use the above information for only the selected additional registrants/attendees.',
);
if ( isset( $strings[$original] ) ) {
$translations = get_translations_for_domain( $domain );
$translated = $translations->translate( $strings[$original] );
}
return $translated;
}
add_filter( 'gettext', 'ee_change_ticket_messaging_registration', 10, 3 );
//* Additional changes to messaging for ticket to registration
add_action( 'FHEE__ticket_selector_chart_template__ticket_details_price_breakdown_heading', 'ee_additional_change_ticket_messaging_registration_a' );
function ee_additional_change_ticket_messaging_registration_a() {
return 'Registration Price Breakdown';
}
//* Additional changes to messaging for ticket to registration
add_action( 'FHEE__ticket_selector_chart_template__ticket_details_event_access_message', 'ee_additional_change_ticket_messaging_registration_b' );
function ee_additional_change_ticket_messaging_registration_b() {
return 'This registration allows access to the following event dates and times.';
}
//* Additional changes to messaging for ticket to registration
add_action( 'FHEE__registration_page_attendee_information__attendee_info_not_required_pg', 'ee_additional_change_ticket_messaging_registration_c' );
function ee_additional_change_ticket_messaging_registration_c() {
return 'This registration type does not require any information for additional attendees, so attendee #1\'s information will be used for registration purposes.';
}
//* Additional changes to messaging for ticket to registration
add_action( 'FHEE__registration_page_attendee_information__auto_copy_attendee_pg', 'ee_additional_change_ticket_messaging_registration_d' );
function ee_additional_change_ticket_messaging_registration_d() {
return 'The above information will be used for any additional registrants/attendees.';
}
//* Additional changes to messaging for ticket to registration
add_action( 'FHEE__ticket_selector_chart_template__ticket_details_total_price', 'ee_additional_change_ticket_messaging_registration_e' );
function ee_additional_change_ticket_messaging_registration_e() {
return 'Total Price';
}
This alternative version will change references to ticket to entries.