Support

Home Forums Event Espresso Premium Possible to allow only one registration per email address and event (2)

Possible to allow only one registration per email address and event (2)

Posted: May 20, 2020 at 3:19 am

Viewing 7 reply threads


joost backaert

May 20, 2020 at 3:19 am

I found the code in a previous post, but is this something that is already possible standard without code? And is that code still relevant? ( message from 2019)


joost backaert

May 20, 2020 at 3:19 am

https://eventespresso.com/topic/possible-to-allow-only-one-registration-per-email-address-and-event/


Tony

  • Support Staff

May 20, 2020 at 5:10 am

Hi there,

I found the code in a previous post, but is this something that is already possible standard without code?

No, this is not something we had added as a feature within Event Espresso.

And is that code still relevant? ( message from 2019)

That code was shared by another user so it’s not something we provide support for. Nothing has changed with how Event Espresso process registrations since that reply so it should still work as it did.

—-

If you are using the WP User integration add-on and require users to log into the site there is another option using this snippet:

https://gist.github.com/Pebblo/10669adfeea322ade3d96a38857fb46b

Which removes the ticket selector if the current user has a registration linked to the event in question.


joost backaert

May 20, 2020 at 3:55 pm

Thanks for the tip!
As it does display the text correct it does not remove the ticket selector, I guess because I’m also using Ultimate Member.

https://itcit.be/opleidingen/test-isnchrijvingen/


Tony

  • Support Staff

May 21, 2020 at 4:36 am

It shouldn’t matter if you are using Ultimate Member, that handles the user account.

Where are you adding that code on the site?

If you are adding it to your themes functions.php file it may be too early to remove the filter, try adding it to a custom functions plugin:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/


joost backaert

May 22, 2020 at 2:07 am

Strange because I added it indeed to a custom function plugin.


Tony

  • Support Staff

May 22, 2020 at 11:14 am

Ahh, I can see why.

You’re using custom ordering on the event details, you can’t filter those like you can the default ordering. If you want to use the above you’ll need to use the default order on the event.


joost backaert

May 22, 2020 at 12:24 pm

Yup, that did the trick, to bad the order is a bit different now, but rather this then multiple subscriptions.

Thanks!

Viewing 7 reply threads

The support post ‘Possible to allow only one registration per email address and event (2)’ 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