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

autocomplete=”off” WordPress Login

Put and check following code in your theme functions.php and let me know if any query

function wpse_159462_login_form() {
    echo <<<html
<script>
    document.getElementById( "user_pass" ).autocomplete = "off";
</script>
html;
}

add_action( 'login_form', 'wpse_159462_login_form' );

Related Posts:

  1. Check for correct username on custom login form
  2. How to disable autocomplete on the wp-login.php page
  3. Add Confirm Password field in wp-login.php Password Reset page
  4. How to customise wp-login.php only for users who are setting a password for the first time?
  5. Give visitor access to password protected page/post via external script
  6. Send reset password link to user from custom lost password form
  7. How can I retrieve the username and password from my WordPress installation?
  8. password protect individual pages
  9. Problem with logging in WP users automatically
  10. How to determine if a user has not changed default generated password
  11. Right practice to edit WP reset password email
  12. Private page protected with username and password
  13. reset password link redirect to login page
  14. Password protect media attachment – share across guests
  15. Password reset – Disabled for LDAP accounts
  16. Why wp_update_user doesn’t update user_activation_key on users with apostrophes in their email?
  17. Forgot Password/ Password Reset Page does not exist
  18. Correct passwords keep appearing as incorrect
  19. Forgot password needs to redirect from wp-login to a custom page
  20. How can I change the email sender name from wordpress to (myblogname) on the “lost password” email?
  21. How to password-protect everything except the logo
  22. Is there anyway to get the inputted password string from the login form?
  23. How can I password protect a WordPress site without requiring users to log in?
  24. Password not resetting on wordpress?
  25. WordPress not logged in locally with correct username and password
  26. wordpress login without password just email address (NO 2 factor authentication with email)
  27. Can I protect a type of content site-wide with a single password?
  28. Password recovery URL has error – but not found in code or db
  29. Temporally disable password to login with empty password?
  30. I need to find which is the file that checks the DB for correct login (username, password)
  31. Login form does not store/remember/suggest users password
  32. How to invalidate `password reset key` after being used
  33. WordPress password reset not working
  34. New user password confirmation sending wrong URL
  35. Locked out of WordPress admin area [closed]
  36. Global login to password protected pages
  37. Disable / Remove Password for Login WordPress
  38. How to password protect pages in WordPress
  39. Chosen user password in registration is not being accepted on Login
  40. User login without username, only password
  41. wp_lostpassword_url not escaped
  42. Trouble logging in and/or changing password
  43. Cannot login with correct username and password anymore
  44. Cant login, Password MUST be reset error, after reset
  45. Log in a user upon password reset?
  46. Customize From and email address on password reset
  47. In Django, how do I know the currently logged-in user?
  48. Can I programmatically login a user without a password?
  49. Can’t log in: “ERROR: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress.”
  50. Is there any way to rename or hide wp-login.php?
  51. How to login with email only no username?
  52. How can I redirect user after entering wrong password?
  53. Increase of failed login attempts, brute force attacks? [closed]
  54. Login page ERROR: Cookies are blocked due to unexpected output
  55. Separate registration and login for different roles
  56. SSO / authentication integration with external ‘directory service’
  57. Preventing session timeout
  58. How reduce wordpress login session timeout time?
  59. How to prefill WordPress registration with social details
  60. Disallow user from editing their own profile information
  61. I can’t access my site via wp-admin
  62. ‘Password field is empty’ error when using autofill in Chrome
  63. Removing username from the ‘wordpress_logged_in’ cookie
  64. How to show ‘login error’ and ‘lost password’ on my template page?
  65. How do I require authorization / login to view a specific set of posts / pages?
  66. What is $interim_login?
  67. Custom login form
  68. How to prefill the username/password fields on the login page
  69. wp_signon returns user, but the user is not logged in
  70. How to protect pages with double authentication: password + email (in custom field)
  71. Adding extra authentication field in login page
  72. Replacing the WordPress password validation
  73. Prevent wp_login_form() from redirecting to wp-admin when there are errors
  74. Redirect user using the ‘wp_login_failed’ action hook if the error is ’empty_username’ or ’empty_password’
  75. wp_signon() does not authenticate user guidance needed
  76. What exactly is ReAuth?
  77. What are the differences between wp_users and wp_usermeta tables?
  78. Login members using web services
  79. Make my wordpress blog remember my login “forever”
  80. How to check in timber if user is loggedin?
  81. How do I change the language of only the login page?
  82. Disable WordPress 3.6 idle logout / login modal window / session expiration
  83. Stop WordPress from logging me out (need to keep me logged in)
  84. Woocommerce registration page [closed]
  85. Share login data/cookies between multiple installations
  86. Synchronize WordPress user accounts across multiple domains and installations without using WordPress MU
  87. How to pass users back and forth using session data?
  88. How do I change the logo on the login page?
  89. Why does WordPress hide the reset password key from the URL?
  90. Is it possible to sign in with user_email in WordPress?
  91. Editing ‘Password Reset’ E-mail
  92. How to use current_user_can()?
  93. Avoid to load default WP styles in login screen
  94. WordPress registration message
  95. How to fake a WordPress login?
  96. how to display the wordpress login and register forms on a page?
  97. Does wp_logout_url() destroy a session? (Logging out question)
  98. How can I send a welcome email to a user AFTER they login for the first time?
  99. Can not login with correct username and password
  100. Website Visible only to Registered users
Categories login Tags autocomplete, login, password
WordPress multisite – is it possible to have different taxonomies for each site?
How to find and remove unnecessary theme scripts? [closed]

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