Support

Home Forums Event Espresso Premium Can I set an option

Can I set an option

Posted: July 25, 2018 at 10:48 pm

Viewing 4 reply threads


adminsevenverbs

July 25, 2018 at 10:48 pm

Can I set an option by which the event disappears from the list once the date is


Tony

  • Support Staff

July 26, 2018 at 3:38 am

Hi there,

We have a filter you can add to the site to remove the events once all of the tickets sell until dates have passed, is that what you are looking for?

The filter is here:

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

You can add that to a custom functions plugin on the site, we have documentation on creating one here:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/


adminsevenverbs

July 26, 2018 at 4:10 am

hi thanks. My requirement is even though it is not sold out, it should be disappear once the date is gone as it does not make sense to keep a past date event.


Tony

  • Support Staff

July 26, 2018 at 4:15 am

May I ask where I mentioned sold out?

I mentioned the sell until dates:

remove the events once all of the tickets sell until dates have passed

Generally, users will set the ticket ‘sell until’ date to the date they want the event to display to, that may or may not match the datetime end date but either way, the above function will remove the event from view when all of the ticket sell until dates have passed, not when they are sold out.


adminsevenverbs

July 26, 2018 at 6:46 am

great…thanks a ton for your assistance for your help

Viewing 4 reply threads

The support post ‘Can I set an option’ 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