Support

Home Forums Event Espresso Premium Which hook in order to modify event details page

Which hook in order to modify event details page

Posted: September 12, 2016 at 6:52 am


ARAGATO

September 12, 2016 at 6:52 am

Currently, when the event registration date has not yet been reached the ticket selector and the registration button are hidden. By using the following filter the ticket selector is show:
add_filter( 'FHEE__ticket_selector_chart_template__hide_ticket_selector', '__return_false' );

However, I would like to have the registration button shown, but in a disabled state. Thus, people can see this is a registrationable event, but the registration is not yet possible.

I thought about hooking the event details hook(s) and adding a pseudobutton as long as the registration date has not been reached.

Could you please tell me which file and which hook I have to address?
Thanks.


Josh

  • Support Staff

September 12, 2016 at 2:28 pm

The hook that controls the display of the button is the

FHEE__EE_Ticket_Selector__display_ticket_selector_submit

filter hook.

So to conditionally make that button display, you can put something like this in your custom code:

add_filter( 'FHEE__EE_Ticket_Selector__display_ticket_selector_submit', '__return_true', 11 );

The support post ‘Which hook in order to modify event details page’ 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