Skip to content

Instantly share code, notes, and snippets.

@neilgee
neilgee / remove-password-strength.php
Last active March 15, 2023 11:51 — forked from WPprodigy/functions.php
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' );
}
}