Last active
December 4, 2017 12:47
-
-
Save Pebblo/385e46712013a3ee5908 to your computer and use it in GitHub Desktop.
Contains the filters used within EE4 Multi Event Registration to output text within the cart. You can use this to translate the strings within the cart. Places holders such as %s should remain but you can alter text before/after if needed.
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 | |
/* | |
Plugin Name: Event Espresso site specific functions | |
Description: Add custom functions for Event Espresso to this plugin. | |
/* Begin Adding Functions Below This Line; Do not include an opening PHP tag as this sample code already includes one! */ | |
//Filter the 'Return to Event List' text. | |
function ee_change_events_list_btn_txt() { | |
return 'Return to Event List'; | |
} | |
add_filter( 'FHEE__EED_Multi_Event_Registration__return_to_events_list_btn_txt', 'ee_change_events_list_btn_txt'); | |
//Filter 'Proceed to Registration' text | |
function ee_change_proceed_to_registration_btn_txt() { | |
return 'Proceed to Registration'; | |
} | |
add_filter( 'FHEE__EED_Multi_Event_Registration__proceed_to_registration_btn_txt', 'ee_change_proceed_to_registration_btn_txt'); | |
//Filter 'Empty Event Cart'. | |
function ee_change_empty_event_cart_btn_txt() { | |
return 'Empty %s'; | |
} | |
add_filter( 'FHEE__EED_Multi_Event_Registration__empty_event_cart_btn_txt', 'ee_change_empty_event_cart_btn_txt'); | |
//Filter 'Update Event Cart'. | |
function ee_change_update_event_cart_btn_txt() { | |
return 'Update %s'; | |
} | |
add_filter( 'FHEE__EED_Multi_Event_Registration__update_event_cart_btn_txt', 'ee_change_update_event_cart_btn_txt'); | |
//Fiter 'View Event Cart'. | |
function ee_change_view_event_cart_btn_txt() { | |
return 'View %s'; | |
} | |
add_filter( 'FHEE__EED_Multi_Event_Registration__view_event_cart_btn_txt', 'ee_change_view_event_cart_btn_txt'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment