Create a new WordPress admin user via PHP script
With this practical script, a new WordPress admin user can easily be created in the database.
The email address is always 'no-reply(at)example.com' - it can be adjusted later in user management if the user is intended to remain and not only be used temporarily.
Adjustments to the downloaded PHP script are of course also possible.
Instructions - Create a WordPress admin user in the database
- Generate the script with the desired data.
- Download the script (a random number from 1-99 will be appended to the file name).
- Upload the script to your webspace into the WordPress root directory (where the wp-config.php is also located).
This can be done via the file manager in the hosting panel or via (s)FTP. - Run the script by opening it in your browser:
https: //example.com/createuser-xx.php - The user has been created in the database and the script was automatically deleted from the server.
- Details
- Last Updated: 05 March 2021
