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

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


BB Theme WordPress: A Comprehensive Review and Guide

Welcome to the world of BB Theme WordPress Are you searching for the perfect WordPress theme to bring your website to life? Look no further! BB WordPress Theme is here to help you design a […]


How to Delete a Theme in WordPress: A Step-by-Step Guide

Easy Ways to Delete Any Theme in WordPress Do you want to remove a WordPress theme and are looking for guidance on how to do it? Removing a theme can help declutter your site and […]


Salient WordPress Theme: A Comprehensive Guide for Beginners

If you’re looking for a WordPress theme that combines versatility, functionality, and style, the salient wordpress theme is worth considering. salient wordpress theme is a multi-purpose WordPress theme that caters to various niches, including business, […]