WordPress has no button to rename a login. Open Users > Profile and the username box is greyed out, with a note under it that reads “Usernames cannot be changed.” That note comes straight from WordPress core, and it is why so many site owners are stuck with a login like admin or an old business name.
You can still change it, and you do not need to create a new account. This guide shows three ways, each run on a clean WordPress 7.1.3 install on our Speed Lab test site on 18 October 2026: the plugin method through the real admin screens, and the database and new-account methods with WP-CLI, the official command-line tool for WordPress. The main method uses SmartUsername 1.5.0, a free plugin I built and published on WordPress.org. I re-ran the plugin steps below on 15 November 2026 on a local WordPress 7.1.4 test site, and the screenshots show that version. Because it is my own plugin, I also list what it does not do, so you can decide with the full picture.
Key Takeaways
- WordPress core blocks username changes in the profile screen, so you need a plugin, WP-CLI with a database query, or a new account.
- SmartUsername 1.5.0 renames any user, including you, in about a minute, and keeps posts, password, email and display name. Since version 1.3 it also hides your login name from visitors with one switch.
- Your author URL keeps the old name unless you tick Update the author URL. With that ticked, the new slug is built from the display name, not the login, and the old author URL redirects to it with a 301.
- The plugin rejects names WordPress would refuse: over 60 characters, empty, taken, or with characters such as
!and#.
On this page12 sections
What you need before you start
Changing a username touches the wp_users table, so prepare for five minutes of care, not five seconds.
- A fresh backup of the database. If you are on Hostinger, here is whether you need a backup plugin on Hostinger at all.
- Administrator access. The plugin needs the
manage_optionscapability, ormanage_network_userson multisite. - The account’s email address. Renamed users are signed out, and WordPress always accepts the email address at login, so email is your safety net.
- About 5 minutes. Difficulty: beginner for the plugin method, intermediate for WP-CLI or phpMyAdmin.
- The new username, 60 characters at most, using letters, numbers and
_ . - @. WordPress also allows spaces (WordPress Developer Resources, sanitize_user), but a space is easy to forget at the login screen, so I leave them out.
Method 1: Change any username with the SmartUsername plugin
This is the method for most people: no database, no new account, and content stays exactly where it is. Since version 1.1.0 it renames any user, not only the account you are signed in with.
Step 1: Install and activate SmartUsername
By the end of this step, a new SmartUsername item sits in the main admin menu, below Users.
- In your dashboard, go to Plugins > Add Plugin and search for “SmartUsername”.
- Click Install Now, then Activate. You can also download it from the SmartUsername page on WordPress.org.
- Check the Plugins list: the plugin row now has a Change Username link.
If any account on your site uses a name that login attacks guess first, such as admin, administrator or your site name, a security check appears on the Dashboard and the Users screen with a one-click Rename button:

Step 2: Open the Change Username screen
By the end of this step, you are on the plugin’s screen with the right user selected. There are three ways in:
- Go to SmartUsername > Change Username in the main admin menu. Older Users > Change Username links redirect there.
- On the Users screen, hover over a name and click Change username.
- On a user’s profile, click the Change username button under the greyed-out Username box.


Step 3: Pick the user and type the new username
By the end of this step, the form shows a green “available” message.
- Choose the account in the User list. It shows the display name and the login, for example Site Admin (admin).
- Type the new name in New username. The old name sits in a grey box on the left. The plugin checks the new name as you type and shows a green line such as “site_owner is available. 10 / 60 characters”. In my test I renamed an administrator account called
admintosite_owner. - If an account uses a name such as
admin, the screen also shows a banner: “admin is the first username bots try. Rename it.”

If the name breaks a rule, you see why before you submit, and nothing is saved:

Step 4: Choose the options
By the end of this step, the options match what you want. Click Options to open them, because they are folded away by default.
- Update the author URL. Tick this if the old name must leave your public URLs. The screen shows the old slug and the new one. The new slug is built from the display name, never from the login, and the old author URL redirects to it with a 301. In my tests this box started unticked.
- Block the old username. Logins with the old name are refused and counted as bot attempts. In my tests it started ticked for
adminand unticked for another user, so check it before you click. - Email the user their new username. It sends the old and new username and the login link. It was ticked in my tests. Untick it if your site cannot send email.
- This is my own account. Sign me out after the change. This yellow box sits above Options. Tick it when you rename the account you are signed in with, or the plugin will not continue.
Step 5: Click Change Username
By the end of this step, the account uses the new login.
Click Change username. A green notice confirms the change, says the user’s open sessions were ended and, if you ticked the author URL option, shows the new slug. This is the notice after renaming another user:

The change is added to Recent renames on the SmartUsername > History tab, which keeps the latest 50 changes with the old and new name, the author URL slug, who made the change and the date.

If you renamed your own account, you land on the login screen. Sign in with the new username or your email address and your usual password.

Verification (15 November 2026, SmartUsername 1.5.0): I renamed blog_editor to rahul_m with the author URL option ticked. The old /author/blog_editor/ address returned a 301 to /author/rahul-mehta/, which follows the display name Rahul Mehta, not the new login. The display name and email address did not change. For my own account, the plugin refused the change until I ticked the confirmation box, then signed me out and showed the login message above, and I signed back in with the new username and the same password.
What changes, and what stays the same
A WordPress account has several name fields. Here is what I checked in the database after each rename:
| Field | What it is | After the change |
|---|---|---|
user_login | The username you sign in with | Changed |
user_nicename | The slug in your author URL | Unchanged, unless you tick the author URL option, then it follows the display name |
| Display name | The name shown on posts | Unchanged |
| Email and password | Other login details | Unchanged |
| Posts and pages | Content linked to the user ID | Still the same author |
| Sessions | Sign-in cookies | Ended, the user signs in again |
WordPress builds author archive links from user_nicename, not from the login (WordPress Developer Resources, get_author_posts_url). When I renamed lab_writer to lab_author without the slug option, the author page stayed at /author/lab_writer/ (18 October test).
- Good for SEO: existing links to the author archive keep working.
- Bad if you renamed for security: anyone can still read the old login in that URL. Tick the author URL option to replace it, and the 301 keeps old links working.
To change the display name as well, open the user’s profile, edit Nickname and pick it in Display name publicly as. No plugin is needed for that.
Method 2: Change a username with WP-CLI or phpMyAdmin
Use this method when you are locked out of the dashboard or manage sites from the command line. WordPress refuses the obvious command: when I ran wp user update with a new --user_login, WP-CLI replied “Warning: User logins can’t be changed.” (WP-CLI user update).
If SmartUsername is installed, it adds its own WP-CLI commands, with the same checks as the admin screen. I renamed lab_writer this way:
wp smartusername check lab_writer lab_author
wp smartusername rename lab_writer lab_author
wp smartusername log
Add --slug to update the author URL with a redirect, and --notify to email the user. A name with ! was rejected by check with the same message as the admin screen. These commands are as listed on the plugin page; I ran them on versions 1.2.0 and 1.3.0, not again on 1.5.0.
Without the plugin, update the database row directly:
- Find the user ID with
wp user list --fields=ID,user_login. - Make sure the new name is free:
wp user get new_usernameshould answer “Invalid user ID, email or login”. - Update the login and clear the cache. The command below reads your table prefix with
wp db prefix, so it works whether your prefix iswp_or something else.
wp db query "UPDATE $(wp db prefix)users SET user_login = 'new_username' WHERE ID = 2"
wp cache flush
In my test the old login was rejected, the new one worked, and a sign-in cookie created before the change stopped working. Posts stayed with the same user ID and the author slug did not change.
Prefer phpMyAdmin? It makes the same edit through a form: open the wp_users table (or your own prefix plus users), click Edit on the user’s row, change user_login, and save. If your host runs an object cache, purge it afterwards. I ran the change as SQL through WP-CLI; phpMyAdmin writes the same value to the same row.
The raw database edit has no safety checks. It will not stop a duplicate name or characters WordPress normally rejects, so follow the rules in the checklist above and stay within 60 characters, the limit of the user_login column.
Method 3: Create a new admin and delete the old one
This is the no-plugin, no-database route. It works, but it replaces the account instead of renaming it.
- Go to Users > Add User and create an administrator with the new username and a different email address.
- Sign out, then sign in as the new user.
- Delete the old user, and when WordPress asks, choose Attribute all content to the new user.
I ran this with WP-CLI on the test site: the test post moved to the new account and the old user was removed. The catch is that the new account has a new user ID, and profile details, application passwords and any plugin settings stored against the old account do not move across. The new account also gets a new author URL, so redirect the old author archive yourself. For a site with one author that is often fine. For a membership site or a WooCommerce store, where orders and memberships belong to the old user ID, renaming is the safer choice.
After the rename: hide your login name (added in 1.3)
A new username only helps if attackers cannot read it. WordPress shows login names in more places than most owners expect: the REST API users list, ?author=1 lookups, embed data and the login error message. In 1.5.0 this lives on the SmartUsername > Protection tab: a count of the places that show login names (for example “Exposed in 8 places”), a Hidden or Visible verdict for each, a fix button next to each problem, and one switch, Hide login names from visitors, that closes the user list, author lookups, the users sitemap and login hints.
I ran it on the same Speed Lab site on 20 October 2026 with wp smartusername exposure. Before the switch, the verdict was Exposed, with four leaks: the REST API users list, author lookups, embed author data and login error messages. After I turned on Hide login names, all four read safe and the verdict changed to Hidden. A visitor request to /wp-json/wp/v2/users then returned 401, and ?author=1 sent visitors to the home page instead of an author URL.
I repeated it on 1.5.0 on the local test site on 15 November 2026. The Protection tab started at Exposed in 8 places and read 8 of 8 places hidden after I turned the protection on. A visitor request to the users list in the REST API returned 401.
- Fix author slugs. The Protection tab flags authors whose public URL shows the login, and one button gives them a new slug based on the display name.
- Trap usernames. Names nobody uses, like
admin, and old names you block after a rename become traps. Login attempts with them are refused and counted in a Login attacks caught Dashboard widget. No IP addresses are stored. - Turn off author pages (optional). A second switch turns author archives off for sites that do not need them, and author links go to the home page.
Not sure if your site leaks a username? Run our free WordPress username exposure checker from any browser. It scans the same places without installing anything.
Which method should you use?
| Feature | SmartUsername 1.5.0 | WP-CLI or phpMyAdmin | New admin account |
|---|---|---|---|
| Keeps the same account and user ID | Yes | Yes | No |
| Renames other users | Yes | Yes | Not applicable |
| Works when locked out | With its WP-CLI command | Yes | No |
| Rejects duplicate, invalid or too-long names | Yes | No | Yes |
| Updates the author URL with a redirect | Optional, 301 | Manual | New URL, no redirect |
| Skill needed | Beginner | Intermediate | Beginner |
For any rename from the dashboard, use the plugin. Use the raw database edit only when you cannot install plugins, and create a new account only if you cannot reach the database either.
What is new in SmartUsername 1.1 to 1.5
I first tested version 1.0.0 for this guide and found four problems. Version 1.1.0 fixed them, and I checked each fix on 18 October 2026 with 1.2.0:
- Renaming other users. 1.0.0 renamed only your own account. Now any administrator can rename any user.
- Long names. 1.0.0 failed silently on a 70-character name while showing a success message. Now names over 60 characters are rejected with a clear error.
- Empty names. In 1.0.0, input made only of HTML tags saved an empty username. Now it is rejected.
- Invalid characters. 1.0.0 accepted
!and#. Now the plugin uses the same strict rules as WordPress core.
Version 1.2.0 then added the security check for risky usernames, the Change username button on profiles, the optional email to the renamed user, WP-CLI commands, and Self-service renames. Self-service is off by default. When you switch it on, chosen roles get Profile > Change Username with a waiting period between changes, and every change still appears in the log.
Version 1.3.0, released on 20 October 2026, moved from renaming to hiding: the exposure check card, the Hide login names switch, trap usernames with the Login attacks caught widget, the Fix author slugs button, an optional switch to turn off author archives, and a wp smartusername exposure command. New author slugs now come from the display name, never from the login. The full list is in the SmartUsername changelog.
Version 1.4.0 refreshed the screen with clearer cards and buttons, added loading feedback while a rename or setting is saved, and added a Docs link on the Plugins screen.
Version 1.5.0, released on 21 October 2026, gave the plugin its own admin menu, SmartUsername. It used to sit under Users, and old Users > Change Username links now redirect to it. It also redesigned the screen with a sidebar for Rename, Protection, History and Settings, turned Rename into one form (user, new name with a live check, one button, options folded away), and moved the longer explanations to the Help tab. The Protection tab now shows how many places reveal login names, with a one-click Hide login names now and a fix button next to each problem. The optional Pro add-on is listed in the sidebar and can be hidden with one click, and no free feature is locked. One quiet line asks for a review after a successful rename, on the plugin’s own screen only. Existing settings carry over and no features or data changed, but the menu and screen moved, so the steps and screenshots in this guide show the 1.5.0 layout.
What it still does not do, by design:
- It does not change the display name. Edit that on the profile.
- It does not rename network super admins on multisite. WordPress stores the super admin list by username, so the plugin refuses instead of risking lost network access. My test site is single-site, so I have not run the plugin on a network.
Common mistakes to avoid
Skipping the backup. Every method here writes to the users table. A backup turns a typo into a two-minute restore instead of a support ticket.
Forgetting the new name before signing out. Renaming your own account signs you out at once. Copy the new username first, or keep your email address handy, because email login works either way.
Assuming the old name is now private. Without the author URL option, the old name stays in your author URL. The same slug also appears in the public users list of the REST API, /wp-json/wp/v2/users, on most sites (REST API Handbook, Users).
Renaming a super admin on multisite by hand. WordPress multisite stores its super admin list by username (WordPress Developer Resources, get_super_admins). If you rename one with SQL, that account can lose network admin access. Update the list straight after the rename:
wp super-admin add new_username
wp super-admin remove old_username
wp super-admin list
Removing the old name matters, so nobody who later registers it inherits network access. I worked this out from the core code and the WP-CLI docs; my test site is single-site, so I have not run this sequence on a network.
Frequently Asked Questions
Can I change my WordPress username without a plugin?
Yes, but not from the profile screen. You either update the user_login field in the database with WP-CLI or phpMyAdmin, or create a new administrator and delete the old account. Both are covered in Methods 2 and 3 above.
Will changing my username affect my posts or SEO?
With Methods 1 and 2, no. Posts are linked to the user ID, not the username, so they stay credited to the same account, and the author URL stays the same unless you change the slug. SmartUsername can change the slug for you and adds a 301 redirect from the old author URL. Method 3 creates a new account with a new author URL, so add a 301 redirect yourself.
Can I change another user’s username?
Yes. With SmartUsername 1.1.0 or later, pick the user on SmartUsername > Change Username, or click Change username under their name on the Users screen or on their profile. You need administrator rights.
Does SmartUsername change the password or email?
No. In my test only the login name changed, plus the author slug when I ticked that option. The user signs back in with the new username and the same password, and the email address, display name and profile stay as they were.
Can I rename the “admin” username for security?
Yes, and it is a sensible first step. WordPress versions before 3.0 created a user called admin by default, which makes it an obvious first guess for anyone trying to break in. SmartUsername flags it on the Dashboard with a Rename button. Tick the author URL option too, so the new login is not visible on your author page. The Block the old username option keeps the old name as a trap: any login attempt with it is refused and counted.
Pick your method and check your author URL
You now have three ways to change a WordPress username, each run on WordPress 7.1.3: SmartUsername for any account from the dashboard or WP-CLI, a database edit when you cannot install plugins, and a new account as the last resort. Whichever you pick, take a backup first, check your author URL afterwards, and run the free username exposure checker to confirm the new name is not public. For more plugins we have checked on real sites, see our list of the best WordPress tools, and read how we test every tool before we write about it. Questions about SmartUsername? Contact me and I will reply.
Sources
- SmartUsername on WordPress.org, version 1.5.0, released 21 October 2026, retrieved 15 November 2026.
- SmartUsername changelog, versions 1.1.0 to 1.5.0, retrieved 15 November 2026.
- sanitize_user(), WordPress Developer Resources, retrieved 18 October 2026.
- get_author_posts_url(), WordPress Developer Resources, retrieved 18 October 2026.
- get_super_admins(), WordPress Developer Resources, retrieved 18 October 2026.
- Users, REST API Handbook, retrieved 18 October 2026.
- wp user update, WP-CLI documentation, retrieved 18 October 2026.
- Hands-on tests on a clean WordPress 7.1.3 install on the Digital Pritam Speed Lab, 18 October 2026: SmartUsername 1.0.0 and 1.2.0 through the admin screens and its WP-CLI commands, plus the database and new-account methods with WP-CLI 2.12.0, using temporary test accounts that were deleted afterwards. SmartUsername 1.3.0 exposure check and Hide login names switch on the same site, 20 October 2026. SmartUsername 1.5.0 screens checked on the same site, 21 October 2026. SmartUsername 1.5.0 rename flow, options, History, login message and Protection tab re-tested on a local WordPress 7.1.4 test site on 15 November 2026: renaming an own account and another user, with the old author URL redirect checked with curl.
FREE PDFGet the Hostinger setup checklist, plus every sale alert
The exact steps we use on our lab sites, and an email when each big hosting sale opens.
Sent instantly. Deal alerts until 1 Dec. Unsubscribe in one click.

