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

I want to disable login of admin (/wp-admin) with email and make it accessible only with username

Yes, you can disable login by email by removing the specific authenticate filter:

remove_filter( 'authenticate', 'wp_authenticate_email_password', 20 );

from a plugin or your theme’s functions.php. This won’t update the UI though, which will still say ‘Username or Email Address’.

Related Posts:

  1. Change WP-Login or WP-Admin
  2. How do I set the homepage to the WordPress Admin Dashboard login?
  3. How to Change The WordPress Login URL Without Plugin
  4. 404 redirect wp-login and wp-admin after changing login url [closed]
  5. Trying to login to my site redirects me to the first page
  6. Admin Login Checks
  7. Why WordPress not logout after I have close my browser?
  8. Admin Login page not working at all
  9. Couple questions about .htaccess, login page, updates
  10. Organizing Code in your WordPress Theme's functions.php File?
  11. Can I rename the wp-admin folder?
  12. What’s the easiest way to stop WP from ever logging me out
  13. Admin Page Redirect
  14. Disable dragging of meta boxes?
  15. How to Change the Default Home Page for the WordPress Dashboard?
  16. How to remove screen options and help links in the admin area?
  17. Securing Admin Accounts – Username Discovery
  18. Sort admin menu items
  19. How to redirect/rewrite all /wp-login requests
  20. Unable to login to my wordpress site. reauth=1 redirection loop
  21. Custom column for changing post status via ajax
  22. Custom login redirects to wp-admin on wrong password
  23. What is the best method to close off the backend?
  24. Change Login URL Without Plugin
  25. Make fonts.com font work in TinyMCE (iframe referrer issue)
  26. Share same domain for wp-admin but for different website
  27. How to allow users login to WP from external domain and make REST requests
  28. Securing wp-admin folder – Purpose? Importance?
  29. Can I rename the wp-admin folder?
  30. How to remove items from +New admin menu?
  31. Users are redirected to homepage instead of wp-admin
  32. Make sub menu items a main link in the admin menu using fuctions.php
  33. Add column to pages table
  34. Options for restricting access to wp-admin
  35. Admin account only shows Profile and Dashboard with no activity
  36. Can initial focus be set to search field in WordPress Media Library?
  37. wp-admin – save options without refreshing?
  38. Display sortable User meta column in admin panel user’s page
  39. How to move wp-admin login page to another location? [closed]
  40. Can’t access admin dashboard with wp-admin without /index.php after it
  41. How to change “wp-admin” to something else without search-replacing the core?
  42. Adding body class to login page?
  43. Edit a WordPress site without the username and password?
  44. How do you modify CSS files via admin panel?
  45. comment_form – show all fields when logged in
  46. How to prevent parent admin page from appearring as a child admin page
  47. Block access to wp-admin
  48. Using /wp-admin works, using /login gives a 404. Why?
  49. I keep getting logged out in Firefox
  50. Cannot log into WordPress Dashboard after removing/adding .htaccess
  51. Should I add the IP of the server that hosts my sites to the list of authorized IPs in the wp-admin/.htaccess?
  52. SSL Partially breaking admin panel and elementor
  53. I cannot log into my wordpress site with my wp-login.php [closed]
  54. FORCE_SSL_ADMIN not working
  55. What is the practical difference between is_admin() and is_blog_admin()?
  56. Cannot access wp-admin after disabling all plugin
  57. Create a admin page in wordpress without admin menus (“wordpress sidebars”)
  58. How to hide wordpress default description box?
  59. Can’t access WordPress as an admin – but I can log in as a user!
  60. Today, without warning, all admin panel logins redirect to home page after login. non-admin users logins work well
  61. Admin username and password
  62. Can’t login to Dashboard when changing site URL to HTTPS
  63. Detecting all admins that are logged in
  64. Limit access to wp_admin
  65. WordPress and bbPress Login conflicts?
  66. Website looks fine, but login to wp-admin yields a blank screen
  67. password reset link being sent as HTTP?
  68. Allow administrators to pick post author on custom post type edit screen
  69. How to make the front-end RTL without changing the admin panel language?
  70. cannot find the login page for local WordPress site
  71. Users disappeared from wp-admin
  72. Modify WP-Admin login fields
  73. display dynamic WP Site logo on wp-admin using CSS
  74. Add column to pages table
  75. wp-admin – 404 after custom login form
  76. How to fix ‘WordPress redirection loop problem in wp-login.php page’?
  77. Logging into sandbox subdomain WP
  78. Logout USER form backoffice after 30 minutes of inactivity [closed]
  79. Having troubles connecting to WordPress login page using Mamp
  80. Do I have to face security problems if I changing default role to Contributor
  81. What are the requirements to make the admin toolbar show up on the front end
  82. Sorry, you are not allowed to access this page
  83. WP Admin/ WP Login Redirect to themselves
  84. is_admin() conditional statement
  85. Impossible User Registration
  86. How to protect wp-admin from third party access?
  87. Is it possible to tell if a user is logged into WordPress from looking at the cookies which are set?
  88. Why when I click on a link into the WP admin panel I am redirected to a link that doesn’t contains wp-admin prefix, so I obtain 404 error
  89. Override WordPress Core File?
  90. How to make the Panel // WP-Admin lighter via Mobile
  91. After Upgrade: $user becomes unknown (id: 0) after successful login?
  92. Redirect users based on their roles, is_admin()
  93. is exposed wp-admin site a serious security vulnerability
  94. WordPress site shows a white page for site/wp_admin. A login returns again to the login screen
  95. Can a user submit requests to wp-admin/admin.php without logging in?
  96. Admin access to secondary site user_can_access_admin_page losing login
  97. Administrator user cannot access dashboard after localwp import
  98. WordPress change role from administrator to author by itself (automatically)
  99. User can see and enter the WordPress Admin without login
  100. login_enqueue_scripts changes are not reflecting
Categories wp-admin Tags admin, login, security, wp-admin
get_users is missing or skipping over users in loop
Woocommerce returns Product post_status as published even tho it is in status draft

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
  • Post Navigation Elementor
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • WPFacet multiple loop displaying duplicate content
  • Get the name of the template/*html file used
  • Fix: WordPress.DB.PreparedSQL.NotPrepared Plugin Check (PCP)
  • Removing unnecessary CSS and JS code from wp_head()
  • hexagonal image gallery. Am I on the right track? [closed]
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
© 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