You are currently viewing Changing WooCommerce Password Strength

Changing WooCommerce Password Strength

Woocommerce account registration page requires password length of minimum twelve character and strong validation while creating an account. Sometime it’s needed to decrease password strength while registering. you can downgrade password length using below code.

function dna_min_password_strength( $strength ) {
    return 2;
}

add_filter( 'woocommerce_min_password_strength', 'dna_min_password_strength', 10, 1 );

Leave a Reply