-
-
Save BurlesonBrad/c89a825a64732a46b87c to your computer and use it in GitHub Desktop.
Reduce or remove WooCommerce 2.5 minimum password strength requirement for creating a user account. Warning: Use at your own risk.
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 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 2; | |
} | |
add_filter( 'woocommerce_min_password_strength', 'reduce_woocommerce_min_strength_requirement' ); |
Lovely. Thanks bud.
thank you
Is it possible to give me rundown on what the difference is between 3, 2, and 1. Is it just character length or something else? I have a popup instructing the user about password strength that I'd like to update with the correct info. thanks for this though, just what I was looking for
Thank you
Thanks brother!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for this!