How to bypass login in WordPress

2015-10-27

This is a small PHP-script that you can save in a PHP-file and move to the root directory of your WordPress site. Navigate to it through your browser and it will automatically authenticate you as the user you choose. It’s a good tool to have laying around if you get locked out of your own site.

And please remember to remove it once you’re done, in case someone else finds out about it.