Skip to content

Instantly share code, notes, and snippets.

@Pebblo
Last active February 20, 2020 12:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Pebblo/c0a730bf7396964f1d58bd6ebbc96b9a to your computer and use it in GitHub Desktop.
Save Pebblo/c0a730bf7396964f1d58bd6ebbc96b9a to your computer and use it in GitHub Desktop.
Example of how to alter the MER cart model success message.
<?php
//Alter the successfully added for this event string
function tw_ee_change_cart_result_message($original_text, $ticket_count) {
return sprintf(
_n(
'1 item was successfully added for this event.',
'%1$s items were successfully added for this event.',
$ticket_count,
'event_espresso'
),
$ticket_count
);
}
add_filter('FHEE__EED_Multi_Event_Registration__get_cart_results_results_message', 'tw_ee_change_cart_result_message', 10, 2);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment