MainWP Community

Disable the Password Strength in WooCommerce

Disable the password strength if using WooCommerce on your child site.

Snippet Type

Execute on Child Sites

Snippet

function wp_wc_remove_password_strength() {
if ( wp_script_is( 'wc-password-strength-meter', 'enqueued' ) ) {
    wp_dequeue_script( 'wc-password-strength-meter' );
  }
} 
add_action( 'wp_print_scripts', 'wp_wc_remove_password_strength', 100 );