Decrease the Strength Required for WooCommerce Passwords

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 );


WordPress Web Designer and founder of JMJ Web Design.

Leave a Reply

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