Plugins Plugin hub Backup SEO Caching Security Forms WooCommerce Images Best backup plugins
Hosting Hosting directory Shared hosting Managed WordPress Cloud hosting VPS hosting By reader location Hosting finder
Themes & builders Compare Rank Math vs Yoast
Tools All tools Hosting finder Plugin stack builder Cost calculator Salt generator Theme detector Who is hosting this? Speed test Headline analyzer robots.txt generator Redirect generator Uptime calculator Blog name generator
Blog Best backup plugins Deals
Guides All guides Speed up WordPress Choose hosting Back up WordPress
How we test

Setup & site building · Explainer

What Is a WordPress User? Explained

What Is a WordPress User? Explained

Short answer

A WordPress user is an account on a WordPress site with a username, email, password and a role. The role, such as Administrator, Editor, Author, Contributor or Subscriber, decides what that person can do. Site visitors who don't log in aren't users.

Key takeaways

  • Every person who logs in to a WordPress site has a user account.
  • Roles decide what each user can see and do.
  • Users live in the wp_users and wp_usermeta tables.
  • Usernames can't be changed from the dashboard.
  • When deleting a user, attribute their content to someone else.

What is a WordPress user?

A WordPress user is an account on a WordPress site with its own username, email and password, plus a role that decides what that person can see and do in the dashboard.

Every person who logs in to a WordPress site has a user account. That includes the site owner, writers, editors and, on shops or membership sites, customers and members.

Visitors who only read your site aren't users. They don't have accounts and don't log in.

You manage users under Users in the dashboard menu. The Users screen documentation on WordPress.org explains each option there.

What information does a WordPress user have?

Each user has a username, email address, password, display name and role, plus optional profile fields such as first name, last name, website and biography.

Here's what a user account holds:

FieldCan it change?What it's for
UsernameNo, not from the dashboardLogging in
EmailYesLogging in, password resets, notifications
PasswordYesLogging in, stored as a hash
RoleYes, by an adminSets what the user can do
Nickname and display nameYesThe name shown on posts and comments
First and last nameYesOptional profile details
Website and bioYesOptional, often shown in author boxes
Application passwordsYesAccess for apps and the REST API

The username is fixed once created. If you need a different one, the usual route is to create a new user and move content to it.

Our guide on how to find your WordPress username helps if you've forgotten yours.

What are user roles?

User roles are sets of permissions, and WordPress comes with five main ones: Administrator, Editor, Author, Contributor and Subscriber.

In short:

  • Administrator: full control of the site, including plugins, themes and other users
  • Editor: manages all posts and pages, including other people's
  • Author: writes and publishes their own posts
  • Contributor: writes their own posts but can't publish them
  • Subscriber: manages their own profile only

Multisite networks add a Super Admin, who controls every site in the network.

Each role is made of capabilities, such as edit_posts or install_plugins. Plugins can add roles too. WooCommerce, for example, adds Customer and Shop Manager.

Our full guide to WordPress user roles compares each one. The Roles and Capabilities page on WordPress.org lists every capability.

Where does WordPress store users?

WordPress stores users in the wp_users database table, with extra profile details, roles and settings saved in the wp_usermeta table.

The two tables work together:

  • wp_users holds the core fields: ID, username, hashed password, email, registration date and display name.
  • wp_usermeta holds everything else as key and value pairs, including first name, roles and admin colour scheme.

Passwords aren't stored as plain text. WordPress saves a one-way hash, so even someone with database access can't read the original password.

PHP's password hashing FAQ explains why hashing is safer than storing or encrypting passwords.

Your table prefix may not be wp_. Check wp-config.php for the real one. Developers can find the full table layout in the database description on the WordPress Codex.

Knowing this helps in emergencies. Our guide on adding a WordPress user in phpMyAdmin shows how to get back in when you're locked out.

How do you add a new user?

An administrator adds a user under Users, then Add New, by entering a username, email and role, and WordPress can email the new user a link to set their password.

Steps:

  1. Go to Users and click Add New User.
  2. Enter a username and email address.
  3. Optionally add first name, last name and website.
  4. Choose a role. Give the lowest role that lets them do their job.
  5. Tick the option to send the user a notification email.
  6. Click Add New User.

The new user gets an email with a link to set a password. If emails don't arrive, check your site's email setup or set a password for them and share it securely.

Can people register themselves as users?

Yes, if you turn on Anyone can register under Settings, then General, visitors can create their own accounts with the default role you choose.

Use this only if you need it, such as for a membership site or community. On most business sites it's best left off.

If you do turn it on:

  • Set the New User Default Role to Subscriber
  • Add spam protection to the registration form
  • Watch for fake sign-ups

Spam registrations are a common problem on open sites. Our guide on stopping fake user registrations covers the fixes.

What happens when you delete a user?

When you delete a user, WordPress asks what to do with their content: delete it all, or assign it to another user, which is almost always the right choice.

Steps:

  1. Go to Users, hover over the user and click Delete.
  2. Choose Attribute all content to and pick another user.
  3. Click Confirm Deletion.

If you choose to delete all content, their posts and pages go too. That can wipe out years of articles, so read the prompt carefully.

Deleting a user doesn't go to a trash. It's permanent. Take a backup first if you're unsure.

How is a WordPress.com account different from a site user?

A WordPress.com account is one login for the WordPress.com service, while a self-hosted WordPress user exists only on that one site's database.

On self-hosted WordPress, each site has its own separate users. Being an admin on one site gives you nothing on another.

WordPress.com accounts work across every WordPress.com site you're added to. Jetpack can also link self-hosted users to WordPress.com accounts for features like single sign-on.

How do you keep user accounts secure?

Give each person their own account with the lowest role they need, use strong passwords and two-factor login, and remove accounts that are no longer used.

Good habits:

  • Never share one admin login among several people
  • Avoid usernames like admin
  • Turn on two-factor authentication for admins and editors
  • Review users every few months and remove old ones
  • Use application passwords instead of real passwords for apps

The WordPress hardening guide covers login security in more detail. To see who did what on your site, read our guide on auditing user activity.

Can you export or move WordPress users?

Yes, you can export users to a CSV with a plugin, move them with a full site migration, or copy the user tables when merging sites.

A normal content export under Tools, then Export only includes authors linked to posts, not every user. For a full list, use a user export plugin.

Our step-by-step guide on how to export WordPress users covers the options. When importing users to a new site, passwords usually carry over only if you move the hashed values, so plan for password resets.

Developers can also manage users with WP-CLI. The wp user command reference lists commands for creating, listing, updating and deleting users from the terminal.

Frequently asked questions

Can I change my WordPress username?

Not from the dashboard. WordPress locks usernames after creation. You can create a new user with the name you want, give it the right role and move your content to it, or a developer can change it in the database.

How many users can a WordPress site have?

There's no built-in limit. Membership sites and stores can have many thousands of users. Very large numbers may need good hosting and caching, but WordPress itself doesn't cap the count.

Are website visitors WordPress users?

No. Visitors who read your site without logging in don't have accounts. Only people with a username and password, such as admins, writers, customers or members, count as users.

What role should a new writer get?

Start with Contributor if someone should review their posts before publishing, or Author if they can publish their own work. Only give Editor or Administrator roles to people who truly need them.

Does deleting a user delete their posts?

Only if you choose that option. WordPress asks whether to delete their content or attribute it to another user. Choose another user to keep the posts on your site.

Sources

  1. Users Screen WordPress.org Documentation
  2. Roles and Capabilities WordPress.org Documentation
  3. wp user WordPress Developer Resources
  4. Database Description WordPress Codex
  5. Hardening WordPress WordPress Developer Resources

Is your product missing, or something out of date?

Tell us what to add or correct. We read every note and reply when we need a source. A message does not buy a ranking.

About the editors

Written and checked byWPLegible Editorial Team Independent WordPress reviews and guides

Researched from the primary sources listed above and checked against our editorial rules before publishing.