Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

How to bypass the username as a required field in registration and just use email address instead?

The registration and login forms can be customized easily below a diggest from the codex:

Customizing The Registration Form

Theme and plugin developers can customize WordPress’s built-in user
registration page through the use of hooks.

Customizing the registration form involves utilizing the following
three hooks:

  1. register_form
    Allows rendering of new HTML form elements.
  2. registration_errors
    Perform validation on form registration fields.
  3. user_register
    Save custom form data.

Customizing the Login Form

You can customize your WordPress login page with action hooks and
filter hooks, including:

  • Actions in the of the document: login_enqueue_scripts, login_head.
  • Filters in the : login_headerurl, login_headertitle, login_message, login_errors.
  • Actions at the bottom of and below the form: login_form, login_footer.

To additionally inform yourself about the above mentioned hooks take a look at the codex page about the Plugin API, you will find the hooks at the Action Reference and the Filter Reference. Some additional, not mentioned hooks can be found at Adminstrative Actions Section especially. Not all of the hooks are documented well (or at all), so it might be necessary to take a look at the source.

Related Posts:

  1. Function like is_registration_page to check if current page is registration page
  2. Multisite/Network What file to edit to change the “new blog” registration text
  3. wp-signup.php example template
  4. How to disable user registration for the default subscriber user role?
  5. Send custom signup approval email to different Administrators selectively
  6. Set user password after creating user
  7. Change wp-signup.php Page Template
  8. WordPress Register Form
  9. How to add user registration and signup in WordPress and create members only page?
  10. signup_user() throws fatal error
  11. wordpress custom registration
  12. A conditional button
  13. Website visible only to Registered users (non wp-admin)
  14. Spam Registrations Bypassing WordPress Registration
  15. Is it possible to remove username field from the registration page? If so, how?
  16. users table – user_name vs. nicename
  17. Google Apps login in wordpress
  18. How do I create a password reset link?
  19. Can I hook into user registration *before* a user is created?
  20. How can I be certain that a user has verified their email after registration?
  21. Placeholder text for registration form
  22. Use the user_activation_key for other purposes
  23. How to limit user registration to a specific set of domains?
  24. Stop spam users from registering without disabling user registration?
  25. How do I create a user using the new JSON api in 4.7?
  26. How to check if the user registration is allowed/active?
  27. How build a custom login/register form with error handling?
  28. how to disable user confirmation from administration?
  29. How to prevent spam users registering even with registration disabled
  30. Custom registration form page/template
  31. Multi-steps WordPress registration : in 4 steps how to?
  32. I want to disable E-Mail verifcation / activation when a user signs up for my WordPress site
  33. Insert “New User” and update/set meta data at once
  34. Send automatic email to user after wp_create_user
  35. Mail isn’t sent after local site registration
  36. “Password Strength Unknown” Registration Issue
  37. How to prevent certain usernames from being registered?
  38. Custom Registration Template/Page
  39. How to disable or protect against disposable email accounts?
  40. How to customise wp-login.php only for users who are setting a password for the first time?
  41. How can I do customizations on login, registration and password recovery forms?
  42. Changing username after registration to get around the issue of having duplicate emails?
  43. Registration key
  44. User defined password at registration – registration email sends auto generated pass
  45. Redirect user after login/registration globally
  46. wpmu_signup_user_notification filter not working
  47. Advice on setting up a site with front end registration
  48. How to add a description to the user name input field in the registration form?
  49. Creating a Closed WordPress Community Using Referral Codes
  50. How to add a checkbox to registration and user profile?
  51. wp_create_user hook
  52. Payment on Registration?
  53. White spaces in username give 404 on author page
  54. WordPress members-only page with link visible only to members
  55. Password field (and confirmation) showing up twice on registration
  56. auto assign sequence base username while registration
  57. Stuck with WordPress Multisite Custom signup page without .htaccess modification
  58. How do I show errors after validation with a custom form frontend?
  59. How can I find users that didn’t set a password?
  60. How to allow more than one registered user to have the same email?
  61. How to auto login after registration? [duplicate]
  62. Is there a maximum length to user passwords?
  63. Registering without e-mail adress!
  64. Batch users creation
  65. After e-junkie payment, send a http post to register user automatically?
  66. Checked checkbox?
  67. Email confirmation in user registration form without a plugin
  68. How to add additional information to a user on user creation?
  69. On user registration, if welcome mail sent, add post with new user as author
  70. How do I force “users must be registered and logged in” on subsites?
  71. How to allow wordpress to create username with symbols like +
  72. Does the user_register change in multisite?
  73. Registration options and approvals
  74. user activation email doesn’t work
  75. Invalid key on activation and password reset
  76. Anyway to output the registration form like the login form with wp_login_form()?
  77. Where are people registering on my website?
  78. How to disallow user to register with a specific word in the username?
  79. How can I have user registration verify a whether a new user is listed in a table of pre-approved users?
  80. How to stop WordPress emailing a password
  81. Mobile User Registration
  82. Change User Registration
  83. Conditionally registering users
  84. Register a new user on wooCommerce using Rest API
  85. On multisite, plugins are disabled prematurely when viewing the /wp-activate.php page file
  86. Correct passwords keep appearing as incorrect
  87. Creating custom registration and login link in wordpress
  88. Adding register & login in WordPress website
  89. Adding register & login at top right corner
  90. Backend user creation form with additional language field
  91. wordpress disable login for unverified user
  92. Restrict certain character combinations in username during registration
  93. registration form not working
  94. How can I disable all client side new accounts without disabling new user accounts?
  95. Auto login from custom registration form
  96. Register users without confirmation
  97. Disabling standard registration login with username/email and password?
  98. Override default new user registration email with custom message (non sub-domain multi-site installation)
  99. Unique registration for new writers to sign up
  100. How to receive notifications when a new user registers
Categories user-registration Tags signup, user-registration, wp-login-form, wp-signup
Loop through Custom Post Type, and then show children within each iteration
wp_enqueue_script Doesn’t Work?

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • Get the name of the template/*html file used
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
  • How to display the description of a custom post type in the dashboard?
  • Critical error on image display
  • Copying WP data and files into new install?
  • How to determine the DirectAdmin WordPress backup date?
  • How to get list of ALL tables in the database?
© 2026 Read For Learn
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress