Created
July 21, 2018 04:25
-
-
Save hemraj7171/fff3de7e5bfeb90647932b96feb0bff5 to your computer and use it in GitHub Desktop.
Change WooCommerce password strength level checkout page/my account page
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
/** | |
* Put this code into your functions.php file | |
* 3 = Strong (default) | |
* 2 = Medium | |
* 1 = Weak | |
* 0 = Very Weak / Anything | |
*/ | |
function raj_woocommerce_pass_strength( $strength ) { | |
return 2; | |
} | |
add_filter( 'woocommerce_min_password_strength', 'raj_woocommerce_pass_strength' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment