Support

Home Forums Event Espresso Premium Change text specific on Registation Form – Event Tickets

Change text specific on Registation Form – Event Tickets

Posted: February 16, 2022 at 4:02 am

Viewing 4 reply threads


CapellaAmersfoort

February 16, 2022 at 4:02 am

How is it possible to change the text ‘Details’ <div class='event-tickets'> on registration form. Via ‘translation’ the change has also impact on other pages, that is not what I want.

Other words:
For <th id="details-2038" scope="col" class="ee-ticket-selector-ticket-details-th">Details</th> ‘Details’ => ‘Tickets’ , only for Event-tickets


Tony

  • Support Staff

February 16, 2022 at 4:06 am

Hi there,

You can use the FHEE__ticket_selector_chart_template__table_header_available_tickets filter for that harder, for example this snippet:

https://gist.github.com/joshfeck/ff2793137c28942775aa

Changes that text to be ‘Available Tickets’, just set the string to whatever you prefer (in this case just ‘Tickets’) and add that to a custom functions plugin on your site, we have some documentation on creating one here:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/


CapellaAmersfoort

February 16, 2022 at 4:15 am

Thanks Tony!

Can I find a list of functions like my_add_text_to_ticket_header_function() somewhere?


CapellaAmersfoort

February 16, 2022 at 4:17 am

..and filters πŸ™‚


Tony

  • Support Staff

February 16, 2022 at 4:45 am

Can I find a list of functions like my_add_text_to_ticket_header_function() somewhere?

That’s a custom function specifically for that example gist, we don’t have functions for every filter πŸ™‚

..and filters πŸ™‚

There are thousands (roughly 3k) of hooks (both actions and filters) within Event Espresso and we currently don’t have a list of them. That’s also not including all of the WP Core hooks that can be

You can use something like Debug Bar with the Actions and Filters add-on to list out all of the hooks ‘fired’ on the current request which should help you find the relevant hooks for the output you are on.

The hook names also follow a specific format if that helps:

https://github.com/eventespresso/event-espresso-core/blob/master/docs/A–Best-Practices/ee-actions-and-filters.md

Viewing 4 reply threads

The support post ‘Change text specific on Registation Form – Event Tickets’ 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