How To Create New Admin Account In WordPress Via FTP

Last Updated on

This tip will be super handy if for whatever reason you only have FTP access to a WordPress site and need to access WordPress from the backend.

Sponser Ads

No matter what the reason is that you don’t have Admin access, just paste this snippet into their current theme’s functions.php file, or add it to a new file in their ~/wp-content/mu-plugins/ folder, and WordPress will automatically create an admin account for you to use!

Make sure to change the following credentials to your own

$login = ‘myacct1‘;
$passw = ‘mypass1‘;
$email = ‘‘;

Make sure you create a brand new account because if there is already an account with the username or email address specified, it will not work.

Sponser Ads
0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *