Home Forums Event Espresso Premium Hide events when "Sell Until" date is past [ESPRESSO_EVENTS]

Hide events when "Sell Until" date is past [ESPRESSO_EVENTS]

Posted: September 28, 2015 at 1:58 pm


September 28, 2015 at 1:58 pm

I’m using [ESPRESSO_EVENTS] in a page. And I need to hide the events where there “Sell Until” date has passed.

I’ve already seen this page:

I’ve tried this code in functions.php:

However, it still shows events that have their “Sell Until” date passed.


September 28, 2015 at 2:00 pm

Forgot to mention I’m on: Version 4.8.9.p


September 28, 2015 at 2:04 pm

And I am willing to modify my templates to get this working, just need instructions.

Lorenzo Orlando Caum

  • Support Staff

September 28, 2015 at 4:07 pm

Hi Donna, I tested the code snippet that you linked to and it does removed expired events.

Could you add it to a site specific plugin on your site?



September 28, 2015 at 4:12 pm

Hi Lorenzo,

Not expired events. I need it to hide “Sell Until” events that have hit their sell until date.

My events span several weeks, but the tickets only sell until the start of the first class.

After the class starts (and “Sell Until” is expired) I don’t want the classes to show.

In EE3, this was the way it used to work, but now in EE4, this was changed.

I know there is a solution to hide “Sell Until” events, but I cannot find it online.


September 28, 2015 at 4:20 pm

Hi Lorenzo,

I saved functions.php again and it worked. It was likely some server-caching going on.

ANyway, it works now, thank you

The support post ‘Hide events when "Sell Until" date is past [ESPRESSO_EVENTS]’ 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  Donna 4 years ago ago

Topic Tags


This topic is: resolved
Do NOT follow this link or you will be banned from the site!