Home Forums Event Espresso Premium Full events

Full events

Posted: January 30, 2021 at 8:11 am


January 30, 2021 at 8:11 am

Hi there,

When an event is fully booked, it changes it’s post_status to sold_out automatically. But my theme doesn’t support anything but published post. And I will not be able to change the parameter. So I found a way to stop changing it post_status sold_out by editing 1 character in event-espresso-core-reg/core/db_classes/EE_Event.class.php. On line 896 I just changed < 1 (smaller than) to <1 (bigger than). But this is not ideal, because it’s I changed it in the source file. So my question is, can I make this change placing this function in my functions.php? Or is there another way to stop changing it to sold_out when sold out?


January 30, 2021 at 8:12 am

This reply has been marked as private.


January 30, 2021 at 8:43 am

This reply has been marked as private.


  • Support Staff

February 1, 2021 at 4:25 am

Hi there,

There is a hook right at the end of that method:


You can use that to change the event status to whatever you need to as we do not support modifying core files.

However, I don’t recommend you do it this way. Modifying how Event Espresso handles events simply because your theme doesn’t support other post statuses seems like the wrong approach to me.

Why not modify the theme to pull in to use other post status values?

The support post ‘Full 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  Tony 2 months, 1 week ago ago

Topic Tags


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