Skip to content

Instantly share code, notes, and snippets.

@fervous
Created December 7, 2016 23:35
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fervous/4f379cc3d0a2af6c09c47112c3c54b6f to your computer and use it in GitHub Desktop.
Save fervous/4f379cc3d0a2af6c09c47112c3c54b6f to your computer and use it in GitHub Desktop.
reduce password strength
/**
*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 1;
}
add_filter( 'woocommerce_min_password_strength', 'reduce_woocommerce_min_strength_requirement' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment