Skip to content

Instantly share code, notes, and snippets.

@Pebblo
Last active September 4, 2017 11:34
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/f2298d46a1d4aac5da7abea355699a1c to your computer and use it in GitHub Desktop.
Save Pebblo/f2298d46a1d4aac5da7abea355699a1c to your computer and use it in GitHub Desktop.
Using a filter to change the text displayed in place of the ticket selector for sold out events
<?php //Please do not include the opening PHP tag if you already have one
function tw_custom_sold_out_message( $original_text, $event ) {
return '<p class="no-ticket-selector-msg clear-float">Sorry, ' . $event->name() . 'is currently sold out.<br/>Please check back again later.</p>';
}
add_filter('FHEE__EE_Ticket_Selector__display_ticket_selector_submit__sold_out_msg', 'tw_custom_sold_out_message', 10, 2 );
<?php //Please do not include the opening PHP tag if you already have one
function tw_custom_sold_out_message( $original_text ) {
return 'Sold&nbsp;Out';
}
add_filter('FHEE__ticket_selector_chart_template__ticket_sold_out_msg', 'tw_custom_sold_out_text');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment