Skip to content

Instantly share code, notes, and snippets.

@robwent
Last active January 24, 2021 14:17
Show Gist options
  • Save robwent/1f6b6b8d0453e09f52be4f1811a689b3 to your computer and use it in GitHub Desktop.
Save robwent/1f6b6b8d0453e09f52be4f1811a689b3 to your computer and use it in GitHub Desktop.
<?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