how-to-add-admin-user-using-FTP-wordpress

How to Add an Admin User in WordPress using FTP

In Wordpress by hfarazm1 Comment

Creating WordPress admin user through FTP is easy. 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 the currently active* theme folder
  4. Inside active theme folder, open functions.php file
  5. Copy and paste the following code at the end of functions.php:

* To know the active theme name, in Chrome browser: Open DevTools  > Sources > Wp-Content > Theme ‘Active theme name will be visible there’.

    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

Comments

Leave a Comment