Posted: 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) |
|
https://eventespresso.com/topic/possible-to-allow-only-one-registration-per-email-address-and-event/ |
|
Hi there,
No, this is not something we had added as a feature within Event Espresso.
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. |
|
Thanks for the tip! |
|
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/ |
|
Strange because I added it indeed to a custom function plugin. |
|
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. |
|
Yup, that did the trick, to bad the order is a bit different now, but rather this then multiple subscriptions. Thanks! |
|
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.