Skip to content

Instantly share code, notes, and snippets.

@kontikidigital
Created May 20, 2020 07:59
Show Gist options
  • Save kontikidigital/e9b6f08872256e3ab501df612a97c98b to your computer and use it in GitHub Desktop.
Save kontikidigital/e9b6f08872256e3ab501df612a97c98b to your computer and use it in GitHub Desktop.
Reduce the strength requirement for woocommerce registration password.
<?php
/*
* Reduce the strength requirement for woocommerce registration password.
* Strength Settings:
* 0 = Nothing = Anything
* 1 = Weak
* 2 = Medium
* 3 = Strong (default)
*/
add_filter( 'woocommerce_min_password_strength', 'mt_woocommerce_password_strength', 10 );
function mt_woocommerce_password_strength() {
return 2; //2 represent medium strength password
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment