• Apple
  • Android
    • Android Games
    • Android phone
    • Android Apps
  • Windows
  • Gadgets
    • Laptops
    • Tablets
    • Mobile Phone
  • How To
  • News
  • Beginner Guide
    • Blogger Guide
    • WordPress Guide
  • Tips & Tricks
    • Android
    • Windows
    • iOS
  • SEO
    • Digital Marketing
  • Review
Search
Wednesday, March 22, 2023
  • Join Us
  • Advertise Here
  • About
  • Privacy Policy
  • Contact us
Sign in
Welcome! Log into your account
Forgot your password? Get help
Password recovery
Recover your password
A password will be e-mailed to you.
ShellTechnos.com ShellTechnos.com
  • Apple
  • Android
    • Android Games
    • Android phone
    • Android Apps
  • Windows
  • Gadgets
    • Laptops
    • Tablets
    • Mobile Phone
  • How To
  • News
  • Beginner Guide
    • Blogger Guide
    • WordPress Guide
  • Tips & Tricks
    • Android
    • Windows
    • iOS
  • SEO
    • Digital Marketing
  • Review
ShellTechnos.com Shell Technos
Home Beginner Guide Wordpress Guide How to Add Administrator user in WordPress using FTP
  • Beginner Guide
  • Wordpress Guide

How to Add Administrator user in WordPress using FTP

By
Prashant Sultania
-
August 11, 2016
0
1588
Facebook
Twitter
Pinterest
WhatsApp
    How to Add Administrator user in Wordpress using FTP

    Many newbie blogger’s face several issues and one of the most common issue is Admin account is locked in wordpress. There might be several reasons due to which admin account is locked. In our previous article we had explained you how to add administrator user in WordPress using MySQL. In this article we will explain how to add administrator user in WordPress using FTP.

    Why you need Administrator User Account in WordPress using FTP?

    You had faced several issues while login on Admin Area in WordPress like forgot email id, username or may be password. In that case you might not be able to login on your wordpress website. If might be possible that your admin account in hacked or website is hacked and admin user account is deleted due to which you are unable to login in website.

    In those cases you can add Administrator user in WordPress Database using MySQL or you can add Administrator user in WordPress using FTP. In these ways you can restore admin access in wordpress website.

    Now let’s see how you can add administrator user in wordpress using FTP.

    Adding Administrator user in WordPress using FTP

    Very first of all you will need FTP Client.

    Now connect to your wordpress website using FTP client and find functions.php file. You can find functions.php file in following location

    /yourwebsite.com/wp-content/themes/your-current-theme/functions.php

    Now download the functions.php file in your local desktop or laptop by right click or click on download button.

    ftp-download

    Now open functions.php file in any text editor software like Notepad or Wordpad or Textpad. Now add below mention code at the bottom of the page.

    function wpb_admin_account(){
    $user = ‘Username’;
    $pass = ‘Password’;
    $email = ’[email protected]’;
    if ( !username_exists( $user ) && !email_exists( $email ) ) {
    $user_id = wp_create_user( $user, $pass, $email );
    $user = new WP_User( $user_id );
    $user->set_role( ‘administrator’ );
    } }
    add_action(‘init’,’wpb_admin_account’);

     

     

     

     

     

     

    Now replace the ‘Username’,’Email’ and ‘Password’ with your own credentials. Now save the file and upload it to the same location.

    Now try to login on your wordpress website with updated credentials. After login in wordpress website go to editor and open functions.php. Now delete the code mentioned above from functions.php. Deleting the code will not delete the user you had added and you can always add editors and authors to your wordpress website.

    Hope we had explained you well how to add administrator user in wordpress using FTP. You can share this article with your friends and family members or you can also subscribe to our newsletter for latest update. You can join us on Twitter, Facebook and Google+

     

    • TAGS
    • how to add admin in wordpress
    • how to add administator account using ftp
    • Wordpress Beginner Guide
    Facebook
    Twitter
    Pinterest
    WhatsApp
      Previous articleUSB Port is Not Working on Laptop or Desktop
      Next articleSamsung Galaxy Note7 (USA)
      Prashant Sultania
      http://www.shelltechnos.com
      Founder of ShellTechnos.com I am Passionate Tech Lover and write articles on Latest Tech News, Support Articles, WordPress Tips and Tricks, Blogger guide many more.

      RELATED ARTICLESMORE FROM AUTHOR

      Wordpress Guide

      How to Install WordPress via MOJO Marketplace

      How to Add Admin user in Wordpress Database using MySQL
      Wordpress Guide

      How to Add Admin user in WordPress Database using MySQL

      Wordpress Guide

      How to Increase File Upload Size in WordPress

      Beginner Guide

      What are REGEX redirects and How to use?

      Wordpress Guide

      WordPress Hosting- which one is the best?

      backup your data on wordpress
      Wordpress Guide

      Backup your data on WordPress

      STAY CONNECTED

      48FansLike
      1FollowersFollow
      9FollowersFollow
      46SubscribersSubscribe

      EDITOR PICKS

      Block title

      • Featured
      • All time popular
      More
        Lenovo Flexible Display
        Gadgets

        Lenovo’s Flexible Display Wrist Phone and Foldable Tablet

        Varun Kumar - July 7, 2016 0
        On 9th June, Lenovo had organized a Tech World Event. People were expecting it as a launch event of a new phone, tablet or...
        Vivo X7 Specifications, features and Review

        Over 250,000 Vivo X7 units sold out in a day

        News July 10, 2016

        Twitter to Stop Counting Photos and Links in 140-Character Limit

        Articles May 17, 2016

        POPULAR POSTS

        How to Change Keyboard languages

        How to Install and Uninstall Keyboard Input Languages in Windows 8

        how to January 1, 2016

        Adding a new post on WordPress – How to?

        how to March 7, 2016
        iPhone iPod iPad is disabled connect to itunes

        How to unlock iPhone, iPad, iPod is disabled connect to itunes

        how to June 2, 2016

        ALEXA RANK

        POPULAR CATEGORY

        • mobile phone72
        • how to38
        • Wordpress Guide32
        • Android phone32
        • Apple32
        • tablets29
        • Beginner Guide20
        • Samsung20
        • Review19
        ShellTechnos.com
        ABOUT US
        Shell Technos is Online Portal for Daily Tech News, Review, Gadgets, How To, Tips and Tricks, Blogger Guide, Wordpress Guide, Android, iOS, Windows, Mac etc.
        Contact us: [email protected]
        FOLLOW US
        • Sitemap
        • Archives
        © Copyright 2015-16 ShellTechnos
        Go to mobile version