Last active
January 24, 2021 14:17
-
-
Save robwent/1f6b6b8d0453e09f52be4f1811a689b3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
/** | |
* Change min password strength. | |
* | |
* @author James Kemp (Iconic) | |
* @link http://iconicwp.com/decrease-strength-required-woocommerce-passwords/ | |
* @param int $strength | |
* @return int | |
*/ | |
function myclass_min_password_strength( $strength ) { | |
return 6; | |
} | |
add_filter( 'woocommerce_min_password_strength', 'myclass_min_password_strength', 10, 1 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment