Support

Home Forums Event Espresso Premium Fixing and issue where cancelled events are showing in registration table

Fixing and issue where cancelled events are showing in registration table

Posted: September 26, 2019 at 7:59 am

Viewing 4 reply threads


starnet

September 26, 2019 at 7:59 am

Hello, We are trying to fix an issue where events we have cancelled are still showing up in our events table list. The registration link is active. If you click on the link it takes you to the events detail page where the user Cannot register for the event. This is good, but we would like the event to completely be removed from the table. If you go to this page: http://starnet.org/home/training/face-to-face-workshops/

the event named: Mom’s Boot Camp: Mindfulness, Relaxation, and Resilience Training for Mothers of Young Children with Disabilities has been cancelled but you can still see the register link.


Josh

  • Support Staff

September 26, 2019 at 9:01 am

Hi,

You can remove the event from the table by adding the following code into a site specific function plugin:

add_action(
    'AHEE__EE_System__construct__begin',
    'remove_cancelled_events_from_frontend',
    10
);
function remove_cancelled_events_from_frontend() {
    add_filter( 
        'AFEE__EEM_Event__construct___custom_stati__cancelled__Public',
        '__return_false' 
    );
}

This tutorial shows how to add a site specific functions plugin.


starnet

September 26, 2019 at 10:06 am

Thank you Josh! That worked. I have another question would you like me to open another ticket or use this thread?


Josh

  • Support Staff

September 26, 2019 at 10:18 am

It’s your choice. Generally speaking, when the separate issues are their own topics the forums are better organized. Which helps future readers of the forums.


starnet

September 27, 2019 at 8:45 am

Great! I have created another topic for my other question. You can close this one out.

Viewing 4 reply threads

The support post ‘Fixing and issue where cancelled events are showing in registration table’ 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