Support

Home Forums Event Espresso Premium Hide cancelled registrations on backend registrations page

Hide cancelled registrations on backend registrations page

Posted: April 24, 2020 at 1:30 pm


tyler

April 24, 2020 at 1:30 pm

Hello,

We’re looking for a way to suppress cancelled registrations on the default view of the backend registrations page. (The client uses the Attendee Mover to move people to other events and would prefer not to see the cancelled registrations in the original event.) Is there a way to hide/suppress those cancelled registrations? Thank you in advance!


Josh

  • Support Staff

April 24, 2020 at 1:57 pm

Hi Tyler,

Yes there is a way by using a callback function on a filter hook. Here’s some example code in a gist:

https://gist.github.com/joshfeck/c7fd2bfde6e08174f876d2bc3690b8bb

You can add the above to a functions plugin.


tyler

April 24, 2020 at 2:48 pm

Awesome, thank you so much Josh.


Josh

  • Support Staff

April 24, 2020 at 2:55 pm

You’re most welcome.


tyler

May 1, 2020 at 8:56 am

Hey Josh, the client is super happy with this – thanks again. However, one thing they noticed was that it prevents trash from displaying anything. So, on the registrations page, they can see trash with a number beside it, but clicking it loads no trash. I removed the snippet in a test environment and it works again. Pretty sure it’s because the trash registrations are all cancelled. Is there any way to adjust the code so that if the client clicks trash on the registrations page they can see all of the trashed registrations (including cancelled?) Ideally here, they just don’t want to see cancelled registrations on the main view. Thank you in advance!


Josh

  • Support Staff

May 1, 2020 at 12:23 pm

Hi Tyler,

I’ve updated the gist so the query isn’t changed when it’s a request for the Trash view.

https://gist.github.com/joshfeck/c7fd2bfde6e08174f876d2bc3690b8bb


tyler

May 1, 2020 at 12:25 pm

Josh, you’re amazing. Thank you so much.

You must be logged in to reply to this support post. Sign In or Register for an Account

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: publish

Updated by  tyler 3 weeks, 4 days ago ago

Topic Tags

Notifications

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