Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Reduce or remove WooCommerce 2.5 minimum password strength requirement for creating a user account. Warning: Use at your own risk.
<?php
/**
*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 2;
}
add_filter( 'woocommerce_min_password_strength', 'reduce_woocommerce_min_strength_requirement' );
@seankmchenry
Copy link

seankmchenry commented Nov 16, 2016

Thanks for this!

@CatinhoCR
Copy link

CatinhoCR commented Dec 29, 2016

Lovely. Thanks bud.

@Arsintorabi
Copy link

Arsintorabi commented Apr 21, 2017

thank you

@jonathancrowell
Copy link

jonathancrowell commented Jun 19, 2017

Is it possible to give me rundown on what the difference is between 3, 2, and 1. Is it just character length or something else? I have a popup instructing the user about password strength that I'd like to update with the correct info. thanks for this though, just what I was looking for

@ajayghaghretiya
Copy link

ajayghaghretiya commented Oct 12, 2017

Thank you

@ncesar
Copy link

ncesar commented Mar 12, 2018

Thanks brother!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment