Disable the Password Strength Meter in WooCommerce

12 Shares

It might be better to decrease the password strength, instead?

It’s not necessarily advised, but forcing strong passwords on your WooCommerce store can sometimes deter customers from processing their order. For the average person, the strength at which WooCommerce/Wordpress require their passwords to be is above and beyond anything the customer will remember. Personally, I use 1password to generate and store all of my passwords, so this is not an issue for me, but your customers may not be as tech-savvy.

Disabling strong passwords should be done at your own discretion, but until WordPress make the password strength parameters editable, I imagine many people will want to do it. You can add the following code to your theme’s functions.php file.

 

12 Shares

8 Comments

  1. Luke Cavanagh says:

    Why WP and WC by default loads these JS files as HTTP requests on homepage, seems like something that should be changed. I can understand loading on checkout, my account and lost password.

    /woocommerce/assets/js/frontend/password-strength-meter.min.js
    /wp-includes/js/zxcvbn-async.min.js
    /wp-admin/js/password-strength-meter.min.js

  2. John Darrel says:

    I think that a better solution would be to prevent password-strength-meter from loading in WordPress at all if the user is not logged in.

    add_action( ‘wp_default_scripts’, function($scripts){
    if(!is_user_logged_in()) {
    $scripts->remove(‘password-strength-meter’);
    }
    return $scripts;
    } );

  3. Evan says:

    Hundreds of cart-abandoners later, a client’s customer finally cracks – “I almost bought from the other guys, that password thing on your checkout page is nuts.”

    Thanks for the snippet. Considering that even the most basic password I could possibly be comfortable using was able to pass the built-in security check… it makes me cringe to disable it but what can you do. It just amazes me that people will choose the path of least resistance over the path of most security, even when their financial information is involved 🙁 Thanks again!

  4. Brandler says:

    Thanks for sharing, I found this really helpful

  5. luis says:

    Thanks!!

Leave a Reply

Your email address will not be published. Required fields are marked *