Created
May 20, 2020 07:59
-
-
Save kontikidigital/e9b6f08872256e3ab501df612a97c98b to your computer and use it in GitHub Desktop.
Reduce the strength requirement for woocommerce registration password.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Reduce the strength requirement for woocommerce registration password. | |
* Strength Settings: | |
* 0 = Nothing = Anything | |
* 1 = Weak | |
* 2 = Medium | |
* 3 = Strong (default) | |
*/ | |
add_filter( 'woocommerce_min_password_strength', 'mt_woocommerce_password_strength', 10 ); | |
function mt_woocommerce_password_strength() { | |
return 2; //2 represent medium strength password | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment