Skip to content

Instantly share code, notes, and snippets.

@neilgee
Forked from WPprodigy/functions.php
Last active March 15, 2023 11:51
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neilgee/0b42409f62a9f98b2a7d346350804a2f to your computer and use it in GitHub Desktop.
Save neilgee/0b42409f62a9f98b2a7d346350804a2f to your computer and use it in GitHub Desktop.
Remove the password strength meter from WooCommerce checkout
add_action( 'wp_print_scripts', 'themeprefix_remove_password_strength', 100 );
// Remove password strength script
function themeprefix_remove_password_strength() {
if ( wp_script_is( 'wc-password-strength-meter', 'enqueued' ) ) {
wp_dequeue_script( 'wc-password-strength-meter' );
}
}
@Teletubby-endemoniado
Copy link

remove-password-strength.php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment