Reset Administrator Password

If you lost your administrator password, you can simply reset your password by adding this statement to your functions.php:


Replace the 1 by the id of your user. 1 is the WordPress super administrator. Next step is to open one frontend page, so that the code gets executed. After one execution, the new password should be set, so you can remove the line.