0

And then to log in only by e-mail and password.

3
  • can you be more specific? By "such a login" do you mean the username? Usernames in WordPress are unique, but display names, nicknames, first, last, etc can all be configured on a per user basis and are not unique
    – Tom J Nowell
    Jul 23 at 15:51
  • yes, username. as I understand it, you can’t make the usernames the same, while you can make the username hidden for the user during registration, and set automatically, for example, based on the user’s email address, but there were other fields, such as first and last name. How can this be done, are there any code examples?
    – Anrisssss
    Jul 24 at 3:02
  • the other fields are not unique, you don't need to do anything for that, and WP already supports entering the email and password instead of the username out of the box, go to your site and try it now.
    – Tom J Nowell
    Jul 24 at 13:05

1 Answer 1

1

First for the usernames, you already have the answer:

you can’t make the usernames the same, while you can make the username hidden for the user during registration, and set automatically, for example, based on the user’s email address

Second for the other fields, they already work the way you want and are not unique. You could give every user the same first/last/display name, they are not unique.

And then to log in only by e-mail and password.

WordPress already has this out the box by default, no changes are necessary, it already works.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.