Following on from the post “Disable the Password Strength Meter in WooCommerce“, it turns out it’s actually possible to decrease the strength required for your customers passwords. This is likely a much better option than disabling it completely, in most scenarios.
The default strength is 3
, and can range from 0 (non-existent) to 5 (ridiculously strong). You can change this by adding the following filter in you functions.php
file, or adding the code using the Code Snippets plugin:
/** * Change min password strength. * * @author James Kemp (Iconic) * @link http://iconicwp.com/decrease-strength-required-woocommerce-passwords/ * @param int $strength * @return int */ function iconic_min_password_strength( $strength ) { return 2; } add_filter( 'woocommerce_min_password_strength', 'iconic_min_password_strength', 10, 1 );