Pilih Laman

Sumber : 8 Most Common WordPress Errors and How to Fix Them (webhostingsecretrevealed.net)

Forgot Admin Email and Password Retrieval Not Working

It is very common to forget your email or password, especially when you have a lot to remember. In such a scenario, you may have clicked on the missing password link to recover the details. But unfortunately, you never get a reset link in your inbox.

Because:

The true cause of this problem is still a mystery, but the solution has not been. There are certain things you can do to change your email and password without the need for a reset link.

Solution #1. Edit your functions.php file

To make changes to the functions.php theme file, navigate to .. /wp-content/themes/your_current_theme via FTP or file manager. Open your functions.php file and add the following line of code.

wp_set_password (‘DesiredNewPassword’, 1);

Place the new password you want in the place that says “DesiredNewPassword”. Save the file and upload it again. Once you log in to your website, remove the code from the file and upload it again.

Solution #2. Reset your email and password via phpMyAdmin

Log in to your cpanel. Click on phpMyAdmin and select your website database. Click on the wp_users table and edit your notes. Enter a new value for the user_pass. Remember phpMyAdmin uses MD5 encryption, so you’ll need to change your password to MD5.

Select the MD5 option from the drop-down menu in Functions. Hit save and update your website.