Reduce the strength requirement for customers passwords

The complex passwords in WooCommerce are a great concept – except when it annoys your customers into leaving the store due to inability to set a secure password.

Add the code below to your functions.php file and set your desired strength.

/**
 *Reduce the strength requirement on the woocommerce password.
 *
 * Strength Settings
 * 3 = Strong (default)
 * 2 = Medium
 * 1 = Weak
 * 0 = Very Weak / Anything
 */
function reduce_woocommerce_min_strength_requirement( $strength ) {
  return 1;
}
add_filter( 'woocommerce_min_password_strength', 'reduce_woocommerce_min_strength_requirement' );

 


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.