![]() ![]() Find the ID of the user you’d like to update. Move into the /wordpress directory and type.WP CLI is a command line tool for managing your WordPress installation. ![]() It will reset your password on every page load until you do so. Once you are able to login, make sure to go back and remove that code.Upload the modified file back to your site.Since we wanted the user ID of the main admin user, we just keep the number as 1, which is typically the user ID of the main admin user. The number 1 above refers to the user ID number in the wp_users database table. In the above code, replace the text my_new_password with your own new password for the main admin user. Edit the file and add this code to it, right at the beginning, after the first Login to your site via FTP and download your active theme’s functions.php file.There is also an easy way to reset your password via FTP, if you’re using the admin user. Reset a WordPress password from phpMyAdmin.If it doesn’t work, check that you’ve followed these instructions exactly. Test the new password on the login screen. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |