Home Forums Event Espresso Premium A way to change Register Now designation to Closed when tickets are claimed

A way to change Register Now designation to Closed when tickets are claimed

Posted: June 14, 2021 at 3:40 pm


June 14, 2021 at 3:40 pm

I know there are ways to change the “register now” text on the button. But, is there a way to have the designation change from register now to “closed” when all tickets are claimed?

Thank you!


  • Support Staff

June 15, 2021 at 5:15 am

Hi there,

Which ‘Register now’ button are you referring to?

The ticket selector button should be removed when an event is sold out and buttons shown on the event lists would normally change to ‘View details’ for sold out events so I’m guessing you are looking somewhere else?

Can you add a screenshot of the output you are viewing?

Jason Lee

June 15, 2021 at 12:41 pm

Tony, we’re having the same issue. For us, it’s on the page that uses the shortcode: [ESPRESSO_EVENTS]

When an event is full with no tickets remaining, the button continues to say Register Now. Just as a note, we do have this in a custom plug in

function ee_view_details_button() {
    return 'Register Now';
add_filter ('FHEE__EE_Ticket_Selector__display_view_details_btn__btn_text', 'ee_view_details_button');

Without that, it says “View Details” all the time


June 15, 2021 at 12:45 pm

Yes – it’s the same scenario on our site as well (with the same custom plugin). Thanks, Tony!


  • Support Staff

June 17, 2021 at 4:47 am

Ok, so with the above code whenever EE would switch the button to ‘View Details’ (like it does with Sold Out events) it’s being filtered to still show ‘Register now’.

You can change the button text to display different text based on what the event status/ticket sales etc are using a snippet like this:


June 17, 2021 at 11:40 am

Thanks, Tony. This should work out great! Just a quick question, though. Do we just add this to the custom plugin or do we need to replace the “register now” custom snippet?


  • Support Staff

June 18, 2021 at 4:07 am

As this does the same (and more) than the original snippet I would replace it.

Where do you have the current code on the site?


June 18, 2021 at 11:05 am

That’s easily done as we built the custom plugin for eventespresso customizations so can swap it out there. I really appreciate the help with this (and everything else)!


  • Support Staff

June 21, 2021 at 4:38 am

Great, let me know if the snippet works well for what you need 🙂

The support post ‘A way to change Register Now designation to Closed when tickets are claimed’ 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