Login to wordpress without a password for account testing

This code can be handy for testing user accounts with getting the user password.

First got to http://whatismyip.com/ to get your current IP address, this is needed so the script can only work for you. Change the “‘192.0.0.1” to your ip address. Add these inside functions.php

Now you are able to login to any user just by entering the user email. Be sure to remove the code after testing.

Leave a Reply

Your email address will not be published. Required fields are marked *