Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save hemraj7171/fff3de7e5bfeb90647932b96feb0bff5 to your computer and use it in GitHub Desktop.
Save hemraj7171/fff3de7e5bfeb90647932b96feb0bff5 to your computer and use it in GitHub Desktop.
Change WooCommerce password strength level checkout page/my account page
/**
* 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