24/7 HUMAN WORDPRESS WATCH · SAN DIEGO, CA · SINCE 1998
HackGuard.com Managed WordPress Security with Heart
TOPIC CLUSTER · ERROR RESCUE & RECOVERY

How to Change a WordPress User from Subscriber to Administrator Role

Jim Walker By Jim Walker, The Hack Repair Guy™ Updated Topic: WordPress Troubleshooting & Error Rescue
Quick Answer

In your WordPress dashboard, open Users > All Users, edit the user profile, change Role from Subscriber to Administrator, and save. If your admin account lost permissions after a hack, set wp_capabilities to a:1:{s:13:"administrator";b:1;} and wp_user_level to 10 in wp_usermeta using phpMyAdmin.

How to Change a WordPress User from Subscriber to Administrator Role
How to promote a user account to Administrator in the WordPress dashboard or inside the wp_usermeta database table when locked out.

Why this matters for your WordPress site

To change your WordPress user account from Subscriber to Administrator, first log into your cPanel. Then click the "phpMyAdmin" button.

You'll see your list of installed databases at left.

If you are not sure which database your WordPress installation is using, then use your cPanel -> "File Manger" to "Edit" the contents of your WordPress configuration file, wp-config.php file.

Back to phpMyAdmin. Click your database and scroll down until you find the 'usermeta' table.

Step-by-step setup and recommendations

usermeta

My goal here is to change the user lmadmin1 from Subscriber to Administrator.

Doing so is fairly easy. After clicking the 'usermeta' table, all I need to do is scroll down within the table until lmadmin1 appears in the list.

usermeta

Ten or so lines below the user lmadmin1, is the line 'user_level'

Common mistakes to avoid

user_level

To switch my lmadmin1 user from the role of Subscriber to Administrator, I have to do two things:

Change the value from 0 to 10 on the 'user_level' line

user_level

Replace the 'capabilities' meta_key value text with 'a:1:{s:13:"administrator";s:1:"1";}'

capabilities

a:1:{s:13:"administrator";s:1:"1";}

The moment I type or paste in the text and hit the enter key I should be able to jump back into WordPress and log in with full Administrator privileges.

It's really that easy! Locked out completely? See how to reset your WordPress password.

Frequently asked questions

What is the fastest way to fix or prevent this issue on my WordPress site?
In your WordPress dashboard, open Users > All Users, edit the user profile, change Role from Subscriber to Administrator, and save. If your admin account lost permissions after a hack, set wp_capabilities to a:1:{s:13:"administrator";b:1;} and wp_user_level to 10 in wp_usermeta using phpMyAdmin.
Can HackGuard.com handle troubleshooting & php for my WordPress site?
Yes. For $14.95/month (or $49.85/month for up to 10 sites), Jim Walker and the HackGuard team perform a 9-point manual security and database overhaul in Week 1, test all core and plugin updates weekly by hand, maintain 60-day offsite cloud backups, and back your site with a free HackRepair.com cleanup guarantee. Call Jim directly at (619) 479-6637.
Jim Walker, The Hack Repair Guy

Written and reviewed by Jim Walker, The Hack Repair Guy™

Jim Walker has protected and repaired WordPress websites since 1998. Want Jim to handle your WordPress security, weekly updates, and 60-day offsite cloud backups for 50 cents a day?

Client Video Story