Weaken WordPress passwords

WordPress requires strong passwords for administrators, authors, and editors, and requires at least moderately complex passwords for everyone else. By default, it just won’t accept weak passwords. If you want to weaken your WordPress password policy so that anything can be accepted, all you have to do is include this code snippet in a plugin or theme.

add_action( 'wp_print_scripts', function() {
    if ( wp_script_is( 'wc-password-strength-meter', 'enqueued' ) ) {
        wp_dequeue_script( 'wc-password-strength-meter' );
}, 100 );

Note that this is probably an incredibly bad idea, but I run into a client once in a while that insists on having simple passwords. This totally nukes all password complexity requirements.

Leave a Comment