Support

Home Forums Event Espresso Premium event never expired

event never expired

Posted: March 26, 2013 at 5:03 pm


Mirko Falavigna

March 26, 2013 at 5:03 pm

hi all,
I need to display information on the post page of the event only when it is expired (END_DATE < TODAY). But the past events are always in the "CLOSED" status (REGISTRATION_END_DATE < TODAY). How I can change it? This could be automatic function that pass the status from CLOSED to EXPIRED.
Any help? Thank you very much!


Dean

March 27, 2013 at 2:36 am

Hello,

There is no EXPIRED status, just closed.

If you are trying to do a custom function, then why cant the end date < todays date work?


Mirko Falavigna

March 27, 2013 at 9:46 am

Hi Dean,
I have changed the event_espresso_get_is_active function in functions/main.php.
In this function there is the EXPIRED status but it was compared to the event start date (and not with the event end date).
Now the new status is EXPIRED when today > end_date
Thank you very much!

The support post ‘event never expired’ 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