Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialKaviArasu N S
4,185 PointsForgot Wordpress password
Have logged out of Wordpress and forgot the password before setting up the SMTP plugin! What should I do now?
2 Answers
Roberto Correale
1,539 PointsThere are different ways to edit it. You can change it via phpmyadmin, editing the old password with a new one. You need to crypt it in MD5 (there are many tools online for this). Another solution is to insert this code in you functions.php file inside you theme, and upload it via ftp :
wp_set_password( 'new_password', 1 );
1 is the id of your account (you can see it in wp_users, if you account was the first one created is 1). You can also check other methods in the wordpress documentation : https://codex.wordpress.org/Resetting_Your_Password
Mark Truitt
17,230 PointsQuestion, how did you setup your local environment?