Skip Navigation

[Resolved] Toolset user form username issue.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 1 reply, has 2 voices.

Last updated by Christopher Amirian 3 months ago.

Assisted by: Christopher Amirian.

Author
Posts
#2750620
Screenshot_3.png
Screenshot_2.png

I have the user form without username input only having field with email password firstname and lastname.
When creating the user with the toolset user form the user name create with the email without special character so I dont want that.
I want to create my user with the unique name like with firstname and lastname and some random numbers does the toolset automatically do that or I need to do some settings ?

I have tried the hook cred_save_data to update the user login after user created but what happens the database userlogin field gets changed and shows correct username - but the user list from the admin area still shows the username with email how is that possible ?

#2751042

Christopher Amirian
Supporter

Languages: English (English )

Hi,

That is not possible with Toolset as when there is no username presented WordPress does that and creates such a combination.

You will need to hijack the user creation process and inject a combination you want as a username on the cred_save custom code.

This is outside of our support scope, but you are welcome to check the ticket below that has a scenario like yours:

https://toolset.com/forums/topic/auto-generate-username-from-form-fields/#post-1258333

Thanks.