Skip to content

Remove Password Strength Meter From Your Registration Form

Many users are trying to remove the password strength from their registration form of WooCommerce. As they are not good in the code for that reason, they always look for an easy solution. You can easily dequeue the script to disable the password strength meter.


You can use these following codes to disable the meter-

function remove_wc_password_meter() {
wp_dequeue_script( 'wc-password-strength-meter' );
}
add_action( 'wp_print_scripts', 'remove_wc_password_meter', 100 );


Just you have to paste those codes into your theme’s (child theme is safe to customize) function.php file.

Published inWooCommerceWordPress

8 Comments

  1. Dennis Richardson Dennis Richardson

    Thanks so much for this! This has been a problem with my website. My only question is where exactly do you place these codes in the function.php file? I don’t want to break my website.

    • @dennis you are most welcome. If you have a child theme then place those codes into your child theme’s function.php file.

  2. This helped alot! Thanks!

  3. I’m putting this code in the child’s theme php and it’s not disabling the strength meter. I’m really trying to disable this as I’m losing business because of it. Any further assistance would be much appriciated.

    • @richard please make sure that you are pasting those codes in your child theme function.php file. I have checked and its working fine. If your theme has any custom code option then put them there.

  4. cal cal

    Inserting this code at the end of my functions.php succeeded in preventing pw strength meter from loading. The problem is now its causing a 404 error and load time of 900ms itself.

    So frustrating that WP doesn’t include the option in the admin dashboard to disable pw strength. A lot of people are the sole author/owner of their blog and don’t allow other users to register.

    function my_add_frontend_scripts() {
    // Deregister script about password strenght meter ~ 800kb
    wp_dequeue_script(‘wc-password-strength-meter’);
    wp_deregister_script(‘wc-password-strength-meter’);

    wp_register_script(‘custom-script’, get_stylesheet_directory_uri().’/custom-script.js’, array(‘jquery’), 1, false );
    wp_enqueue_script(‘custom-script’);
    }

    add_action(‘wp_enqueue_scripts’, ‘my_add_frontend_scripts’);

    • Hello,

      The code was fit when I wrote the blog. Recently I did not check if it is working fine or not as many things has been changed till today 🙂

Leave a Reply

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

%d bloggers like this: