How to create new admin user in wordpress
To create a new admin user in WordPress, you can follow these steps:
Method 1: Using the WordPress Dashboard
- Log in to your WordPress dashboard by going to
yourwebsite.com/wp-admin
(replaceyourwebsite.com
with your website's URL). - Click on the "Users" tab in the left-hand menu.
- Click on the "Add New" button.
- Fill in the required information for the new user:
- Username: Choose a unique username for the new admin user.
- Email: Enter the email address for the new admin user.
- First Name and Last Name: Enter the first and last names for the new admin user (optional).
- Role: Select "Administrator" from the dropdown menu.
- Password: Enter a strong password for the new admin user.
- Confirm Password: Re-enter the password to confirm.
- Click the "Add New User" button to create the new admin user.
Method 2: Using the WordPress Command Line
- Open your terminal or command prompt and navigate to your WordPress installation directory.
- Run the following command to create a new admin user:
wp user create <username> <email> --role=administrator --password=<password>
Replace
<username>
,<email>
, and<password>
with the desired values for the new admin user.
For example:
wp user create newadmin [email protected] --role=administrator --password=mypassword
This will create a new admin user with the specified username, email, and password.
Method 3: Using a Plugin
There are several plugins available that allow you to create new admin users from the WordPress dashboard. One popular option is the "User Role Editor" plugin.
- Install and activate the "User Role Editor" plugin.
- Go to the "Users" tab in the WordPress dashboard.
- Click on the "Add New" button.
- Fill in the required information for the new user, including the username, email, and password.
- Select the "Administrator" role from the dropdown menu.
- Click the "Add New User" button to create the new admin user.
Regardless of the method you choose, the new admin user will be created and will have access to the WordPress dashboard with the specified role and permissions.