Support

Home Forums WP User Integration EE3 User Integration – Auto create an account during registration?

EE3 User Integration – Auto create an account during registration?

Posted: October 31, 2016 at 9:54 pm


Kelly Johannsen

October 31, 2016 at 9:54 pm

I am wondering if it is possible to auto create an account during user registration in ee3 AND have it related to My Events.

Here are the things I am trying to accomplish:
-I need people to see event details on my site without having to register for a new user account first.
-I need users to be able to cancel their own registrations (which means I need to use ee3 and have people register; I recently downgraded to ee3 for this functionality)
-I would like to streamline the User Creation process to have it happen during the event registration.

I read this thread (https://eventespresso.com/topic/ee3-user-creation/) and was able to auto create accounts during registration, however, the user created during the registration did not relate back to the registration itself (meaning the registration does not show up in My Events under the new user).

Please help!


Tony

  • Support Staff

November 1, 2016 at 4:04 pm

Hi Kelly,

The code snippet provided in the thread you linked to does not link the registration with the user during the creating of that user, but it is possible to do.

I have previously provided and example of how this can be done here:

https://gist.github.com/Pebblo/7825452

Its very similar to the other snippet however this one will check if the EE3 WP user Integration add-on is installed and active when it creates the user, if it is it will use a function available within that add-on to add the registration to the user.

Try adding that to either your themes functions.php file or a Custom Functions Plugin and retest.

Note, these snippets are unsupported and not heavily tested by ourselves (the support team provide them to help users and provide an example, sometimes they will need to be improved upon). I’ve not had any problems with the snippet and it works well on a couple of my local sites but please be sure to fully test it works as expected before using it.

The support post ‘EE3 User Integration – Auto create an account during registration?’ 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.

Status: closed

Updated by  Tony 3 years, 1 month ago ago

Topic Tags

Notifications

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