Turn off the password strength meter
Removes WooCommerce’s password strength meter from the account and checkout pages. It loads a 400 KB script and blocks weak but acceptable passwords.
<?php
add_action(
'wp_print_scripts',
static function () {
if ( wp_script_is( 'wc-password-strength-meter', 'enqueued' ) ) {
wp_dequeue_script( 'wc-password-strength-meter' );
}
},
10
);
Good to know
Customers can then choose weaker passwords. Pair it with “Passwords of at least 12 characters” if that worries you.
In these packs
- More speed: More ways to load less: block styles, speculative loading, fewer scripts.
- WooCommerce: account, emails and admin: A leaner My account page, handier order lists and emails, and lighter pages.