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 ?
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.