-
-
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
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 | |
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 ); |
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 | |
function tw_custom_sold_out_message( $original_text ) { | |
return 'Sold 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