Disable password strange check when creating account

To disable password strength checking when creating a customer account in the order form, add the following code to the theme’s functions.php.

function studiowp_wp_enqueue_scripts() {
	wp_dequeue_script( 'wc-password-strength-meter' );
}
add_action( 'wp_enqueue_scripts', 'studiowp_wp_enqueue_scripts', 99999 );

View the code on Gist.

If you do not use the child theme, remember that changes made to the functions.php file will be overwritten when the theme is updated.

While copying code to functions.php file it is not nessesary to copy <?php opening tag.

About grola

Passionate about Wordpress and WooCommerce for many years. Author of plugins and short snippets improving Wordpress and WooCommerce.

View all posts by grola →