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. Can I rename the wp-admin folder?
  11. Admin Page Redirect
  12. Disable dragging of meta boxes?
  13. How to Change the Default Home Page for the WordPress Dashboard?
  14. How to remove screen options and help links in the admin area?
  15. Sort admin menu items
  16. Unable to login to my wordpress site. reauth=1 redirection loop
  17. Custom column for changing post status via ajax
  18. Custom login redirects to wp-admin on wrong password
  19. Make fonts.com font work in TinyMCE (iframe referrer issue)
  20. Share same domain for wp-admin but for different website
  21. How to allow users login to WP from external domain and make REST requests
  22. Securing wp-admin folder – Purpose? Importance?
  23. Can I rename the wp-admin folder?
  24. Users are redirected to homepage instead of wp-admin
  25. Admin account only shows Profile and Dashboard with no activity
  26. Can’t access admin dashboard with wp-admin without /index.php after it
  27. How to change “wp-admin” to something else without search-replacing the core?
  28. Adding body class to login page?
  29. Edit a WordPress site without the username and password?
  30. Block access to wp-admin
  31. Using /wp-admin works, using /login gives a 404. Why?
  32. Cannot log into WordPress Dashboard after removing/adding .htaccess
  33. Should I add the IP of the server that hosts my sites to the list of authorized IPs in the wp-admin/.htaccess?
  34. FORCE_SSL_ADMIN not working
  35. Cannot access wp-admin after disabling all plugin
  36. Can’t access WordPress as an admin – but I can log in as a user!
  37. Admin username and password
  38. Can’t login to Dashboard when changing site URL to HTTPS
  39. Limit access to wp_admin
  40. WordPress and bbPress Login conflicts?
  41. Allow administrators to pick post author on custom post type edit screen
  42. Users disappeared from wp-admin
  43. Modify WP-Admin login fields
  44. Add column to pages table
  45. wp-admin – 404 after custom login form
  46. Logout USER form backoffice after 30 minutes of inactivity [closed]
  47. Having troubles connecting to WordPress login page using Mamp
  48. What are the requirements to make the admin toolbar show up on the front end
  49. Sorry, you are not allowed to access this page
  50. WP Admin/ WP Login Redirect to themselves
  51. Remove bulk option row
  52. Unable to Access WP Admin or Login buttons after Migration
  53. Hide username discovery
  54. Cookie Domain is preventing Admin login
  55. Require Login Redirect to Login Page
  56. Cannot access WordPress login pages
  57. using rewrites to secure login page
  58. Cant login to wp-admin
  59. Efficient way to check local WordPress php files and Database for malicious code? [duplicate]
  60. Hooks: admin_footer and admin_print_footer_scripts not working?
  61. Why am I locked out of the system?
  62. Can’t access wp-admin, redirects to http://%24domain/wp-admin/
  63. What is the correct way to get only display plugin for Administrator Only
  64. WordPress Brute Force Prevention
  65. firing function at login within class
  66. Browse Happy in 3.2
  67. WP-admin or any other is redirecting me to (This page doesn’t seem to exist.)
  68. How to break line / add to ADMIN menu
  69. wp-login not found – All usual solutions not working
  70. External HTTP API calls slowing down WordPress admin [closed]
  71. Outputting something based on the presence of post variable in admin screens
  72. Does deleting the table users prevent all logins?
  73. Creating custom admin panel pages without making a plugin?
  74. Blank page when viewing wp-admin
  75. GoDaddy hosting wp-admin problem
  76. Uncaught SyntaxError: Unexpected Token Illegal
  77. Newly created user role not displaying on users screen
  78. WordPress Admin extremely slow when other admin logged in
  79. WordPress Admin Panel Left Sidebar No showing on Post create page
  80. Accessing wordpress tool in local MAMP Site
  81. How to log into WordPress via GET/POST
  82. How to remove Google fonts from wp-admin (Roboto) added by core
  83. CSRF attack to create USER
  84. stop customize.php redirect to login page if admin is not logged in
  85. When installing wordpress through WP CLI mysite.com/admin not working
  86. Handling multiple account logins?
  87. Not able to access WP admin Page, redirected and a drop down login menu appears 401 error
  88. WordPress Login for multiple sites
  89. Can’t log into WordPress after domain change
  90. WordPress login not working
  91. is_admin() conditional statement
  92. Impossible User Registration
  93. Is it possible to tell if a user is logged into WordPress from looking at the cookies which are set?
  94. Override WordPress Core File?
  95. After Upgrade: $user becomes unknown (id: 0) after successful login?
  96. Redirect users based on their roles, is_admin()
  97. is exposed wp-admin site a serious security vulnerability
  98. WordPress site shows a white page for site/wp_admin. A login returns again to the login screen
  99. Admin access to secondary site user_can_access_admin_page losing 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
  • 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