Skip to content

Instantly share code, notes, and snippets.

@Pebblo
Last active Jun 9, 2022
Embed
What would you like to do?
Example of how to filter the ticket selector button text to change 'View Event Cart'.
<?php //Please do not include the opening PHP tag if you already have one.
function tw_ee_custom_filter_ticket_selector_submit_button_text( $btn_text, $event ) {
if( $btn_text === 'View Event Cart' ) {
$btn_text = 'Add/View Event Cart';
}
return $btn_text;
}
add_filter( 'FHEE__EE_Ticket_Selector__display_ticket_selector_submit__btn_text', 'tw_ee_custom_filter_ticket_selector_submit_button_text', 15, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment