Service concept. Isolated on white.

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.

Share This Post

Related Post

0 thoughts on “Remove Password Strength Meter From Your Registration Form

  1. 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.

  2. 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.

    1. @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.

  3. 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_register_script(‘custom-script’, get_stylesheet_directory_uri().’/custom-script.js’, array(‘jquery’), 1, false );

    add_action(‘wp_enqueue_scripts’, ‘my_add_frontend_scripts’);

    1. 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 *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: