I was attempting to use EE_Event->is_active() or EE_Event->status but the first returns false and the second returns “not active” even when the event status is upcoming.
In addition, an event has the same status ‘upcoming’ whether tickets are on sale or not so perhaps status is not what I need. How can I determine if tickets are on sale? In this case if the tickets are not on sale then I don’t want a link to the event’s page but rather a coming soon notice on the events index/listing.
Perfect thanks Sidney. (Your link to the code docs in my other post fully answers this too.)
Viewing 4 reply threads
The support post ‘is_active and status’ 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.