Home Forums WP User Integration Auto Create Usernmes

Auto Create Usernmes

Posted: March 5, 2014 at 11:32 am

tim melody

March 5, 2014 at 11:32 am

Scenario: login is required. A user registers for an event and also registers x-number additional attendees.

Is there any way possible to automatically generate a user name and temporary password for those additional attendees?


  • Support Staff

March 5, 2014 at 7:18 pm

Yes, here is some example code that makes this happen:

tim melody

March 5, 2014 at 9:32 pm

Ah Josh, my man, you always come through for me. Thank you! I will test this out.


March 6, 2014 at 5:09 am

Please let us know if you require further assistance or if we can mark this thread as resolved. Thanks!

tim melody

March 20, 2014 at 3:16 pm

Hi Josh, Dean, sorry I didn’t get back to this right away (got sick for a week).

I implemented the code and ran test registrations for four different new users and it worked exactly as it should, creating a user, generating password, etc.

However, when I login as those users the events I registered for are not listed under My Events. IS this to be expected on the first registration? If so, is there any way to possibly change that?

If that’s not supposed to be happening do you have any idea what could possibly be causing the discrepancy?

Thanks for help!

Also, there is another aspect to this operation on the IT side that is still not complete. i.e. we are trying to get EE to generate the right info needed into the database in order to sync with a CRM in the manner the company needs and auto- generating users is a part of that. So if you could continue to leave the topic open until that aspect is complete I would appreciate, in case there are any further questions.

Thanks again, Tim


March 21, 2014 at 2:06 am

Hi Tim,

Give this version a whirl

It’s a fork of Seths and it should allow the first event to be entered into the My Events.

Note though, that it shifts some of the details around compared to Seths version, so it checks if the user exists via email, will disregard the user if the username exists, and also sets the username as firstnamelastname.

If you don’t want that, just look at adding line 36 into your existing code.

Please note that forum posts will automatically close after a set period of inactivity (2 weeks I believe).

The support post ‘Auto Create Usernmes’ 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.

Get online help with the WP User Integration add-on by creating a support topic in this forum. Offer member pricing with the WP User Integration. WP User Integration documentation.

Status: closed

Updated by  Dean 6 years, 4 months ago ago

Topic Tags


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