Skip to content

Instantly share code, notes, and snippets.

@WPprodigy
Created January 20, 2016 17:11
Show Gist options
  • Star 13 You must be signed in to star a gist
  • Fork 9 You must be signed in to fork a gist
  • Save WPprodigy/91df9848c2deb469cba0 to your computer and use it in GitHub Desktop.
Save WPprodigy/91df9848c2deb469cba0 to your computer and use it in GitHub Desktop.
Remove the password strength meter from WooCommerce checkout
function wc_ninja_remove_password_strength() {
if ( wp_script_is( 'wc-password-strength-meter', 'enqueued' ) ) {
wp_dequeue_script( 'wc-password-strength-meter' );
}
}
add_action( 'wp_print_scripts', 'wc_ninja_remove_password_strength', 100 );
@jobst
Copy link

jobst commented Apr 14, 2016

Perfect!

@davidperezgar
Copy link

That's nice function

Copy link

ghost commented Aug 19, 2016

Thx bro'

@phreaks
Copy link

phreaks commented Sep 11, 2016

works! Thx dude.

@kshojib
Copy link

kshojib commented Sep 27, 2016

Thank you so much. :)

@kushjyoti
Copy link

Nice

@eduwass
Copy link

eduwass commented Feb 23, 2017

Isn't there a way to lower the strength requirement without totally disabling?

Ninja edit: there is! -> woocommerce_min_password_strength!

add_filter( 'woocommerce_min_password_strength', 'uh_oh_weakpasswords' );

function uh_oh_weakpasswords() {
return 1;
}

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