I am using espresso_event_reg_button('Register',false, get_the_id()) to output the register button on my archive page tiles.
I am also using WaitList add-on. I want the ‘Sold Out’ text to say ‘Join the Waitlist’ if the event is sold out AND has a wait list (not all events have a waitlist)
I see that espresso_event_reg_button() is a pluggable function so I can add my own logic to it, but I do not see any easy means of determining waitlist..
for example I cannot use EED_Wait_Lists::getWaitListMonitor()->eventHasOpenWaitList($event) because that function is private.
Am I missing something? Is there a means to achieve this?
for example I cannot use EED_Wait_Lists::getWaitListMonitor()->eventHasOpenWaitList($event) because that function is private.
You can safely set this method to be public within the waitlist add-on your site, it will be public in the next release so the change you apply here will be applied in the next update anyway (due out next week if no issues with the current testing).
The support post ‘Template Tags and WaitList add-on : espresso_event_reg_button()’ 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.