how-to-change-woocommerce-min-password-strength

Change WooCommerce min password strength

  • June 1, 2022

Here we will learn how to change WooCommerce min password strength using custom snippet.

WooCommerce has a filter hook to manage WooCommerce min password strength.

Well I personally recommend you to not change password security level, because strong passwords are difficult to crack. but it depends on your choice so below we are discussing about the snippet that your need to add in your child theme’s functions.php file

There are 4 possible settings to change your WooCommerce passwords security. Where higher is strong and lower is weak.

/**
 * @snippet       Change WooCommerce password strength
 * @author        Deep Prakash Goyal
 * @website       https://wpexpertdeep.com/
 */

add_filter( 'woocommerce_min_password_strength', 'wpexpertdeep_change_password_strength' );
 
function wpexpertdeep_change_password_strength( $strength ) {
    // 3 => Strong (default) | 2 => Medium | 1 => Weak | 0 => Very Weak (anything).
	 return 1;
}

Related Post

Change-in-stock-out-stock-text-in-Woocommerce-single-product-page

Change “in stock” / “out stock” text in Woocommerce single product page

In this tutorial you will learn how we can change “in stock” / “out stock” text with the custom. We will use custom snippet for this. Just copy the above snippet and paste in your […]

Change-product-price-in-cart-programmatically

Change product price in cart programmatically

Here we will learn, how we can change product price in cart programmatically. Add below code in your theme’s functions.php file

Fix-Images-and-Broken-Links-by-Updating-Paths-in-WordPress

Fix Images and Broken Links by Updating Paths in WordPress

Today we will learn how to fix broken images link issue in WordPress, after migrating site from local server to live server or (one domain to another). This is a very common issue. The simple […]