-
-
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'
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 //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