Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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

This comment has been minimized.

Show comment Hide comment
@jobst

jobst Apr 14, 2016

Perfect!

jobst commented Apr 14, 2016

Perfect!

@davidperezgar

This comment has been minimized.

Show comment Hide comment
@davidperezgar

davidperezgar Jul 6, 2016

That's nice function

That's nice function

@ghost

This comment has been minimized.

Show comment Hide comment
@ghost

ghost Aug 19, 2016

Thx bro'

ghost commented Aug 19, 2016

Thx bro'

@phreaks

This comment has been minimized.

Show comment Hide comment
@phreaks

phreaks Sep 11, 2016

works! Thx dude.

phreaks commented Sep 11, 2016

works! Thx dude.

@sjbkhan13

This comment has been minimized.

Show comment Hide comment
@sjbkhan13

sjbkhan13 Sep 27, 2016

Thank you so much. :)

Thank you so much. :)

@kushjyoti

This comment has been minimized.

Show comment Hide comment
@kushjyoti

kushjyoti Dec 30, 2016

Nice

Nice

@eduwass

This comment has been minimized.

Show comment Hide comment
@eduwass

eduwass 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;
}

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