Skip to content

Instantly share code, notes, and snippets.

@Pebblo
Last active June 9, 2022 22:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Pebblo/00e163c2882e41741d6a86e42b543cc1 to your computer and use it in GitHub Desktop.
Save Pebblo/00e163c2882e41741d6a86e42b543cc1 to your computer and use it in GitHub Desktop.
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