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.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Josh 3 years, 2 months ago ago

Topic Tags

Notifications

This topic is: resolved
Do NOT follow this link or you will be banned from the site!
[for="input_96_5_3"]
[for="input_96_5_3"]
[gravityform id=96 title=false description=false]
  • This field is for validation purposes and should be left unchanged.
[i]
[i]
[gravityform id=69 title=false description=false]
  • This field is for validation purposes and should be left unchanged.