Support

Home Forums Event Espresso Premium Take all the classes off the front end event list when they start rather than th

Take all the classes off the front end event list when they start rather than th

Posted: September 28, 2022 at 8:00 am

Viewing 4 reply threads


Thomas Luke Owens

September 28, 2022 at 8:00 am

Is there a setting to take all the classes off the front end event list when they start rather than the end time? So course don’t show to register after the start time to stop people purchases courses already in flight.

For example on this page. To exclude events where the start date/time is in the past and not based on the end date/time.
https://npdestraining.com/courses-and-training/gswcc-stormwater-training/all-level-1a-fundamentals-classes/


Tony

  • Support Staff

September 28, 2022 at 9:01 am

Hi there,

Whilst not what you are asking for here, you can set the ‘Sell until’ date of the tickets within the event to match the start date/time to prevent people purchasing tickets after the event has started.

Actually, if you do that, you can then use this snippet:

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

Which will filter out events which have all of their tickets currently ‘expired’ (meaning the date/time now is past the ‘sell until’ datetime of the tickets on the event).

Is that what you are looking for?


Tony

  • Support Staff

September 28, 2022 at 9:02 am

Note that you add that snippet to a custom functions plugin on your site, we have some documentation on creating one here:

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


Thomas Luke Owens

September 28, 2022 at 10:09 am

That’s perfect. Thank you.


Tony

  • Support Staff

September 28, 2022 at 12:28 pm

You’re most welcome 🙂

Viewing 4 reply threads

The support post ‘Take all the classes off the front end event list when they start rather than th’ 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