Support

Home Forums Event Espresso Premium We want closed events not to be shown in the calendar

We want closed events not to be shown in the calendar

Posted: February 7, 2018 at 6:53 am

Viewing 5 reply threads


pvhaganees

February 7, 2018 at 6:53 am

hi there,
we’ve got events that are closed because of severral reasons. Now we do not want them to be seen on the calendar. Please let me know how to do that.
thanks!


Tony

  • Support Staff

February 7, 2018 at 8:25 am

Hi there,

Can I ask what a ‘closed’ event is? (With regards to EE)

How are you setting these events to closed in EE?


pvhaganees

February 21, 2018 at 10:09 am

when an event is active, but we have no more places for this event..


Josh

  • Support Staff

February 21, 2018 at 11:09 am

Do you mean don’t show the event is it’s sold out? If so you can add this code to your site:

add_filter( 'AFEE__EEM_Event__construct___custom_stati__sold_out__Public', '__return_false' );

You can add the above to a functions plugin.


pvhaganees

February 22, 2018 at 1:19 am

this is one of the reasons and we will try this, thanks! After reading my question I change it a little bit: When opening the ‘calendar’ page I see al the events. On this ‘overall’ place, I cannot see if an event is closed for some reason or still active. I have to click on a single event to see if it’s an active event or if it’s a closed / sold out one. I would like to see it when I go to the calender page. I can put a tekst in the ‘resume’ of ‘recap’ textbox under the location field, but that’s not a very simple method.


Josh

  • Support Staff

February 22, 2018 at 8:56 am

The code I shared with you will actually remove the events that are sold out.

Viewing 5 reply threads

The support post ‘We want closed events not to be shown in the calendar’ 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