Skip to content

Commit f2697e8

Browse files
authored
Disable password strength Add
1 parent 32b898f commit f2697e8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

wc-performance-improvements.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,10 @@ function unset_some_columns_in_product_list( $column_headers ) {
5858

5959
// Disable background image regeneration
6060
add_filter( 'woocommerce_background_image_regeneration', '__return_false' );
61+
62+
// Disable password strength
63+
function deregister_or_dequeue_scripts() {
64+
wp_dequeue_script('wc-password-strength-meter');
65+
}
66+
67+
add_action('wp_print_scripts', 'deregister_or_dequeue_scripts', 20);

0 commit comments

Comments
 (0)