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?
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?
Viewing 3 reply threads
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.