Protect Super Admin Accounts in WordPress Multisite

Discuss smarter ways to manage and optimize cv data.
Post Reply
shaownhasane
Posts: 116
Joined: Mon Dec 23, 2024 2:26 pm

Protect Super Admin Accounts in WordPress Multisite

Post by shaownhasane »

First, you need to connect to your website italy phone number using an FTP client or the file manager application in your hosting control panel.

Once connected, navigate to the folder /wp-content/themes/ and open the folder for the theme you are using on your main website.

WordPress wp-content folder
Various files and templates used by WordPress themes are displayed here.

You need to find the file functions.php and download it to your computer.

Download function file
You can now open the file using a simple text editor such as Notepad or TextEdit.

Next, add the following code to the bottom of the file, functions.php:

add_action( 'init', 'wpb_create_super_admin' );
Make sure to enter the $username, $password, and $email values ​​as well as the values ​​you want to use for the new super administrator user account.

Finally, don’t forget to save the changes and upload the file to your website.

You can now access the WordPress admin area of ​​your main site using the data you added to the function file.

Important: After logging in to the super administrator account, don’t forget to delete the code added to the function file.

We find that many beginners are unable to access their WordPress multisite super admin account.

Some people simply forgot their login credentials, others were attacked by hackers who gained access to multiple of their websites, causing severe financial and reputational damage.

We recommend that all users follow our comprehensive WordPress security guidelines to protect their sites.

Here are some tips you can put into practice right away.

1. Set up WordPress automatic backup

Make sure you use a WordPress backup plugin to automatically create a backup of your WordPress website and store it in a remote location.

We recommend a photocopier. It's easy to use and configure, creates secure backups and stores them in the cloud. What's more, it allows you to easily restore your website with just a click from your backup.
Post Reply