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

  1. Log in to your WordPress dashboard by going to yourwebsite.com/wp-admin (replace yourwebsite.com with your website's URL).
  2. Click on the "Users" tab in the left-hand menu.
  3. Click on the "Add New" button.
  4. 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.
  5. Click the "Add New User" button to create the new admin user.

Method 2: Using the WordPress Command Line

  1. Open your terminal or command prompt and navigate to your WordPress installation directory.
  2. 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.

  1. Install and activate the "User Role Editor" plugin.
  2. Go to the "Users" tab in the WordPress dashboard.
  3. Click on the "Add New" button.
  4. Fill in the required information for the new user, including the username, email, and password.
  5. Select the "Administrator" role from the dropdown menu.
  6. 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.