-
-
Save Pebblo/c0a730bf7396964f1d58bd6ebbc96b9a to your computer and use it in GitHub Desktop.
Example of how to alter the MER cart model success message.
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
<?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