Support

Home Forums Event Espresso Premium Automatic creation of user accounts in wordpress, in case of multiple registran

Automatic creation of user accounts in wordpress, in case of multiple registran

Posted: December 8, 2022 at 12:08 am


michelle@complianceaid.pro

December 8, 2022 at 12:08 am

In event espresso if someone registers for an event their user account is created. In case someone registers more than 1 user lets suppose 8 users in that case user account is created only for Primary registrant in wordpress.
What about the other 7 users? How do we make sure that the other user accounts are also created in wordpress in case of multiple registrations for an event.


Tony

  • Support Staff

December 8, 2022 at 4:42 am

Hi there,

Event Espresso considers the primary registrant to be the ‘payee’ and the one managing payments for the group, so for the default behaviour of Event Espresso, we only need an account only for the primary registrant.

What about the other 7 users? How do we make sure that the other user accounts are also created in wordpress in case of multiple registrations for an event.

It is possible to do this with a custom snippet we have here:

https://github.com/eventespresso/ee-code-snippet-library/blob/master/addons/eea-wp-user/jf_ee_process_multi_wpuser_for_attendees.php

However, why do you need user accounts for each registrant? The reason I ask is using the above to create them still may not do what you need.


michelle@complianceaid.pro

December 9, 2022 at 3:32 am

This reply has been marked as private.


Tony

  • Support Staff

December 9, 2022 at 4:06 am

Ok, so the above snippet will create those users for you and should work for that use case.

It will create all of the users using the role you set in for that specific event.

You can add that to a custom functions plugin on your site, we have some documentation on creating one here:

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

It removes the original function and replaces it with one to create users for each registration.

The support post ‘Automatic creation of user accounts in wordpress, in case of multiple registran’ 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