Created
December 13, 2017 09:55
-
-
Save Pebblo/e5eaa91d366ddd988d3ace8916b03fa0 to your computer and use it in GitHub Desktop.
Example of how to change the strings in use within the 'Access' section of the ticket detials shown on the ticket selector.
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 | |
//Change the 'Date' string. | |
function tw_ee_access_change_event_date_string() { | |
return 'Date'; | |
} | |
add_filter( 'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_event_date', 'tw_ee_access_change_event_date_string' ); | |
//Change the 'Sold' string | |
function tw_ee_access_change_this_ticket_sold_string() { | |
return 'Sold'; | |
} | |
add_filter( 'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_this_ticket_sold', 'tw_ee_access_change_this_ticket_sold_string' ); | |
//Change the 'Remaining' string. | |
function tw_ee_access_change_ticket_left_string() { | |
return 'Remaining'; | |
} | |
add_filter( 'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_this_ticket_left', 'tw_ee_access_change_ticket_left_string' ); | |
//Change the 'Tolal Sold' string | |
function tw_ee_access_change_total_ticket_sold_string() { | |
return 'Total%sSold'; | |
} | |
add_filter( 'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_total_ticket_sold', 'tw_ee_access_change_total_ticket_sold_string' ); | |
//Change the 'Total Spaces Left' | |
function tw_ee_access_change_total_ticket_left_string() { | |
return 'Total Spaces%sLeft'; | |
} | |
add_filter( 'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_total_ticket_left', 'tw_ee_access_change_total_ticket_left_string' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment