Skip to content

Instantly share code, notes, and snippets.

@joshfeck
Forked from Pebblo/example.php
Last active February 2, 2017 01:35
Show Gist options
  • Save joshfeck/5aaf702bf80385efa6560087de2c2185 to your computer and use it in GitHub Desktop.
Save joshfeck/5aaf702bf80385efa6560087de2c2185 to your computer and use it in GitHub Desktop.
How to filter the 'Event Cart' text to use something else in its place, in this example just 'Cart'
<?php //Please do not include the opening PHP tag if you already have one.
function tw_ee_return_cart() {
return 'Cart';
}
add_filter( 'FHEE__EED_Multi_Event_Registration__set_definitions__event_cart_name', 'tw_ee_return_cart' );
// also filter the empty cart message:
function my_ee_cart_is_empty() {
return 'The cart is empty';
}
add_filter( 'FHEE__EE_Event_Cart_Line_Item_Display_Strategy___empty_msg_row', 'my_ee_cart_is_empty' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment