1 / 6

How to Add an Admin User in WordPress using FTP?

<br>Willing you want to know How to include Admin User in WordPress utilizing by FTP? If you forget your email address or username on the website then you can't able to login in the admin area. One easy methods to do this is by adding an admin user in the WordPress database using MySQL. But if you may not be able to connect to phpMyAdmin or do not want to run MySQL queries directly. Please visit the following link to know the complete information: - https://www.wpglobalsupport.com/add-an-admin-user-in-wordpress-using-ftp/

saurav112
Download Presentation

How to Add an Admin User in WordPress using FTP?

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Step by step instructions to Add an Admin User in WordPress utilizing FTP Guided By: - WPGLOBALSUPPORT

  2. Why may you need to Add an Admin User in WordPress Using FTP? If you forget your email address or username on the website then you can't able to login in the admin area. One easy methods to do this is by adding an admin user in the WordPress database using MySQL. But if you may not be able to connect to phpMyAdmin or do not want to run MySQL queries directly. A few clients can hack their site and administrator record can be erased. All things considered, including a head client utilizing FTP can rapidly reestablish your entrance to the WordPress administrator zone.

  3. Firstly you will need an FTP client. After connecting to your WordPress site, you will find the functions.php file of your WordPress theme. It will be at such a place: /yoursite.com/wp-content/themes/your-current-theme/functions.php Now Right-click on the functions.php file and then select download. after that FTP client will download the functions.php file on your computer. Adding an Admin User in WordPress Using FTP

  4. Open the file you downloaded on your computer using a plain text editor like Notepad. You will now need to add this path code below the file. function wpb_admin_account(){ $user = ‘Username’; $pass = ‘Password’; $email = ’email@domain.com’; 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’);

  5. Check your username, password, and email@domain.com with your prices and make sure After this, save the file and then upload it back to your site using the FTP client. Now you can go to the login area of your WordPress site and you can still sign in with the added user account. Once you log into your WordPress website, please edit the functions.php file and delete the code you added. Removing the code will not delete the user you added, and you can always add new users and authors to your WordPress site.

  6. Today, We have discussed in this Presentation that How to Add an Admin User in WordPress using FTP? We hope this blog has helped you to add it! If you have any kind of pareshani related to it, tell me in the comments section. If you have any query or doubt then visit our site by this link and know to more information: https://www.wpglobalsupport.com/add-an-admin-user-in-wordpress-using-ftp/ Conclucion

More Related