How to Reset WordPress Password using Function file-: Are you facing trouble to reset your WordPress website password? keep reading this post, I will explain you easiest way to reset your WordPress website password using Function.php file.
Reset WordPress Password using Function file-:
Function.php is one of the most important files of your WordPress website. If you lost access of your WordPress Dashboard you can still access your function.php file and reset your password. In this post, I will explain How to rest WordPress Password using function.php file.
Log in to your hosting account either the use of cPanel or with Filezilla FTP client. For more info read my complete guide on How to use FileZilla FTP client with your WordPress Hosting. As I said Function.php is very important to file so takes its backup before editing it. Once you took the backup add following line of code after <?php:
wp_set_password( 'password', 1 );
Now upload function.php file to your hosting account. Never forget to replace Password with your desired password. Once you are able to log in, make sure to go back and remove that code. It will reset your password on every page load until you do so.
Thanks for reading…“Pardon my grammar, English is not my native tongue.”
If you like my work, Please Share on Social Media! You can Follow WP knol on Facebook, Twitter, Pinterest and YouTube for latest updates. You may Subscribe to WP Knol Newsletter to get latest updates via Email. You May also Continue Reading my Recent Posts Which Might Interest You.