woocommerce password strength settings

Sometimes its very annoying when you are trying to create a simple password in woocommerce and its notifying you “Your Password is weak” or some things else notification. You can Change the Setting of the password strength with the below options.

[php]
OPTION 1 – Add a warning that you need a stronger password.
/* WC Vendors – Add a "Need a strong password" notice to the My Account Page */
add_action( ‘woocommerce_register_form’, ‘wcvendors_notify_password_myaccount’ );
function wcvendors_notify_password_myaccount() {
echo ‘<strong>Important</strong> — This site respects your security. We require all new members to use a strong password. If you can not click the Register button, <strong>you need a stronger password</strong>.<br><br>’;
}

/* WC Vendors – Add a "Need a strong password" notice to the Checkout Page */
add_action( ‘woocommerce_after_checkout_registration_form’, ‘wcvendors_notify_password_checkout’ );
function wcvendors_notify_password_checkout() {
echo ‘<strong>Important</strong> — This site respects your security. We require all new members to use a strong password. If you can not click the Place Order button, <strong>you need a stronger password</strong>.’;
}

OPTION 2: Disable the entire password check all together, and allow passwords like abcd1234 to be used.
/* WC Vendors Disable WooCommerce Password Strength Requirement */
function wcvendors_remove_password_strength() {
if ( wp_script_is( ‘wc-password-strength-meter’, ‘enqueued’ ) ) {
wp_dequeue_script( ‘wc-password-strength-meter’ );
}
}
add_action( ‘wp_print_scripts’, ‘wcvendors_remove_password_strength’, 100 );
[/php]

9 thoughts on “woocommerce password strength settings”

Leave a Comment

Your email address will not be published. Required fields are marked *

0 Shares
Tweet
Share
Pin
Share