Created
July 21, 2018 04:21
-
-
Save hemraj7171/a0fa431a344fd4bb77e5d0395a3f3a60 to your computer and use it in GitHub Desktop.
Remove password strength Woocommerce
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Just put this code into your functions.php file | |
//removing default Woocommerce password strenght | |
function raj_remove_password_strength() { | |
if ( wp_script_is( 'wc-password-strength-meter', 'enqueued' ) ) { | |
wp_dequeue_script( 'wc-password-strength-meter' ); | |
} | |
} | |
add_action( 'wp_print_scripts', 'raj_remove_password_strength', 100 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment