Quick Tip – disable WordPress login during development

When you’re developing a WordPress site locally it can be tedious to keep logging in with a fake username and password – particularly if you’re testing things out from the perspective of multiple user types (e.g. Admin and Subscriber) or using an existing database.

Fortunately there’s a quick hack which makes lets you skip WordPress’ password validation. Add the following like to your wp-config.php (or whippet-wp-config.php if you’re using Whippet):

function wp_check_password() { return true; }

You still need to put something in the password field when logging in but this can be anything (just mash the keyboard).

Health Warning: Obviously only ever use this when developing locally and make sure it doesn’t make it’s way onto a publicly visible site!