Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
* Plugin Name: Remove login autocomplete
* Description: Disable login password autocomplete
* Version: 0.1
* Author: Nobody
* License: WTFPL
add_action('login_init', 'acme_autocomplete_login_init');
function acme_autocomplete_login_init()
add_action('login_form', 'acme_autocomplete_login_form');
function acme_autocomplete_login_form()
$content = ob_get_contents();
$content = str_replace('id="user_pass"', 'id="user_pass" autocomplete="off"', $content);
echo $content;
Copy link

Khaleel commented Nov 14, 2018

Looks great. Where does this go? Inside the plugins folder?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment