Now that you’ve successfully reset your password, remove the wp_set_password line from your local functions.php file, and re-upload it.Login to your WordPress dashboard using the new temporary password you just set. Upload this modified functions.php file back to your /themes folder on the server.You’ll also want to make sure that you’re using a secure WordPress password. In this example, we’re setting the password to password, and we’re updating it for the user admin, if your admin user has a different username you’ll want to be sure to use that. On line 2, right after the first In my case this was /home/userna5/public_html/wp-content/themes/twentyfourteen/functions.php Login to your website via FTP and navigate to your theme’s functions.php file and download it to your local computer.If you don’t have access to your WordPress database, you can also reset you password with FTP. You should now see a success message from phpMyAdmin saying the database record was updated.In the user_pass field, paste your password by pressing Ctrl – V.From the drop-down, select MD5.Finally click on Go.Click on Edit beside your WordPress admin user.Click on the name of your WordPress database.Under the Databases section, click on phpMyAdmin.It’s also recommended that you always backup your database in cPanel prior to making any database modifications directly. You should only use this method if you’re comfortable with working with databases in this fashion. Resetting your password (WordPress.You can directly change your WordPress password in the database using phpMyAdmin if you forgot it.Do this carefully, do not remove other codes or it's comments. Use your FTP program to open up functions.php and remove the codes that you have added.After you have log into your website, you will need to remove that code from functions.php. Proceed to login to your WordPress admin.Save and upload functions.php to overwrite the copy on your server. Wp_set_password('YourNewPasswordHere', 1) The number 1 is your user ID in your WordPress users database. Replace your "YourNewPasswordHere" with your new password.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |