# Relax the Account Password Strength Requirement

> Lowers the password strength WooCommerce requires on registration and checkout from "strong" to "medium", which reduces abandoned sign-ups.

- Type: PHP
- Runs: Run everywhere
- Category: [WooCommerce](https://wpide.com/library/category/woocommerce/)
- Requires: WooCommerce
- Tags: woocommerce, password, registration
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/woo-password-strength/

## Code

```php
add_filter( 'woocommerce_min_password_strength', function () {
    // 0 = very weak, 1 = weak, 2 = medium, 3 = strong (default), 4 = very strong.
    return 2;
} );
```

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Relax the Account Password Strength Requirement" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
