Support

Home Forums Event Espresso Premium Hide events when booking closes

Hide events when booking closes

Posted: February 6, 2020 at 4:02 am

Viewing 2 reply threads


Anthony Irtelli

February 6, 2020 at 4:02 am

Hi

Do you know if it is possible to hide events once the booking has closed. For example I have some events that finish at the end of February but booking closed at the end of January and they are still showing up on my upcoming events.

I can see why someone might want them to appear, but I wonder if there is some code or settings to make them disappear.

Thanks for your help.

Mark


Josh

  • Support Staff

February 6, 2020 at 9:04 am

Hi Mark,

There is some code that does this:

https://github.com/eventespresso/ee-code-snippet-library/blob/master/templates/de_ee_filter_events_out_with_expired_tickets.php

You can add the above to a functions plugin or, if available, into your WordPress child theme’s functions.php file.


Anthony Irtelli

February 12, 2020 at 5:14 am

Thank you, that worked perfectly.

Viewing 2 reply threads

The support post ‘Hide events when booking closes’ 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