Decrease the Strength Required for WooCommerce Passwords

by Jason 24 June, 2022

Career in web design

This will be the first of many WordPress snippets of code, that as WordPress developers we’re always coming back to. Hopefully this archive will be helpful to other WP developers as much as us!

From a score of 0 of 5, the default value of 3 is a little high for most clients. We usually like to reduce this to 2.

/**
* Change WP min password strength
*/
function jmj_min_password_strength( $value ) {
return 2;
}
add_filter( 'woocommerce_min_password_strength', 'jmj_min_password_strength', 10, 1 );