Disable Password Strength Meter Without Plugin to remove the zxcvbn.js script and slightly speed up your WordPress login or signup pages. Here’s how to do it with a quick tweak.
Step 1: Add the Password Strength Meter Disable Code
Add this to your child theme’s functions.php:
// Disable password strength meter script
function qdt_remove_password_strength_meter() {
if (wp_script_is(‘password-strength-meter’, ‘enqueued’)) {
wp_dequeue_script(‘password-strength-meter’);
}
}
add_action(‘wp_print_scripts’, ‘qdt_remove_password_strength_meter’, 100);
How It Works
This function dequeues the password-strength-meter script when it’s loaded on login and register pages, preventing it from adding extra load time.
Why Disable Password Strength Meter Without Plugin?
If you don’t need to force strong passwords, you can safely remove this script and reduce your page weight slightly.
Common Mistake
Only disable this if you trust your users to create secure passwords manually. Otherwise, keep it active for better security.
Pro Tip
Add this tweak to your child theme’s functions.php so it stays active after updates.
Related Snippet
If you liked this, check out my guide on disabling the admin bar without a plugin in WordPress.