add-admin-user-using-FTP-wordpress

How to Add an Admin User in WordPress using FTP

In Wordpress by hfarazmLeave a Comment

Let’s create an Admin user in WordPress using FTP only. You might need this solution if

  • You are having trouble logging in to your WordPress
  • The password reset link is not working
  • You are a developer and client have not provided admin access
  • or any other related issue (please comment below)

Solution:

  1. Open FTP client such as FileZilla and login to your FTP account
  2. Navigate to wp-content/themes folder of your site
  3. Open your theme folder (How to know theme folder?)
  4. Search for functions.php file and open it
  5. Copy and paste the following code at the end of functions.php in your theme:
    1. Change username, password, and email to something unique which has never been used on that site earlier.
    2. Save changes.
    3. Now open your WordPress site login page and login to your account
    4. You are now logged in.

Still having difficulty, contact us here