Support

Home Forums Event Espresso Premium EE Ticket Selector Header Fliter not working?

EE Ticket Selector Header Fliter not working?

Posted: August 3, 2017 at 7:10 am

Viewing 2 reply threads


George

August 3, 2017 at 7:10 am

Hi,

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.

Can you assist fix this?


Josh

  • Support Staff

August 3, 2017 at 8:00 am

Hi George,

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.


George

August 3, 2017 at 8:05 am

Oh dear,

Thanks alot Josh…

Viewing 2 reply threads

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.

Event Espresso