How to auto generate username from first and last name?
I’m trying to create a registration page with ‘first name’, ‘last name’, ’email’ and ‘password’, without the need for the user to create a username.
The username would be autogenerated off of the user’s first and last name. E.g. If user’s name is John Doe, his username would be automatic created as ‘john_doe’.
If another user registered with that same name, username “john_doe_1″ would be created – as WP does with images.
I know this is possible because that is how “Login/Register with FB plugins” do.
A plugin that did that would be ideal, but I couldn’t find anything.
- The topic ‘How to auto generate username from first and last name?’ is closed to new replies.