I noticed this filter FHEE__ticket_selector_chart_template__display_ticket_price_details located in standard_ticket_selector.template.php has an empty defualt value? apply_filters( 'FHEE__ticket_selector_chart_template__display_ticket_price_details', TRUE ). Was this done on purppose?
So i tried using the filter to override the default “empty” value to “Available Tickets”. I added this code to my functions.php apply_filters('FHEE__ticket_selector_chart_template__table_header_available_tickets', esc_html__( 'Available Tickets', 'event_espresso' ), $EVT_ID ); but it doesn’t work.
Please is there something i’m doing wrong? currently, my ticket selector available ticket column has no header text.
I’m afraid you are actually not using the correct filter functions. When you see an apply_filters() function that means you can use add_filter() or even remove_filter(). So your code will look like this:
add_filter(
'FHEE__ticket_selector_chart_template__table_header_available_tickets',
function()
{ return 'Your text here';}
);
Was this done on purppose?
Yes this was actually done on purpose because Event Espresso is a distributed product. Whatever text that could end up there is likely going to be changed anyway.
The support post ‘EE Ticket Selector Header Fliter not working?’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.
Support forum for Event Espresso 3 and Event Espresso 4.