Learn in this tutorial how to modify the password strength in WooCommerce with a simple code snippet.
WooCommerce has a built-in system to check password strength. It is very good but it is possible in some case you may want to modify the password strength or even remove it.

Are you interested in this? Here’s how to do it:
Snippet to modify WooCommerce password strength
Add the following code at the end of functions.php or in your functionality plugin:
To see this and another 997 code snippets of this website, login or subscribe here.
In this case you are setting to require a medium security level (2), but it can be customized to your needs. This is the scale:
- 0 = No security > any password will do
- 1 = Weak
- 2 = Medium
- 3 = Strong (default)
If what you want is to completely remove this strength check, you can do so by dequeueing the script that is in charge of it. In that case, use the following code instead of the one above:
To see this and another 997 code snippets of this website, login or subscribe here.
Thanks to the wp_dequeue_script
function you make sure that the script is not loaded and therefore does not perform the security check.
Conclusion
As you can see, with a few lines of code you can modify the WooCommerce password strength.
Any questions? I read you in the comments.
And if you want to give me any suggestion for future tutorials, leave it in the contact form. Advantages of being a subscriber. 😉