While forcing strong passwords on your WooCommerce customers might stop them from completing their order, this is still not a good idea. Disabling strong passwords should be done at your own discretion, but until WordPress make the password strength parameters editable, I imagine many want this.
<?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', 'weszty_woocommerce_password_filter', 10 );
function weszty_woocommerce_password_filter() {
return 0;
}
// To change the hint text, use the following.
add_filter( 'password_hint', 'weszty_change_woocommerce_password_hint_text' );
function weszty_change_woocommerce_password_hint_text( $hint ) {
return esc_html__( 'YOUR TEXT HERE','woocommerce' );
}
?>
CSS =>
to remove the “Weak”, “Medium” and “Strong” indicator using CSS:
div.woocommerce-password-strength.short { display: none !important; }
or:
.woocommerce-password-strength { display: none !important; }