Oct 08, 2023   ,

Sometimes it’s just so hard to change roles, passwords not working or what. You can do in PHPMyAdmin and it’s not even that hard.

You go to the database and select the usermeta tab

If there is more than a user I suggest that you click on user_id so it gives results all for each user at once

The ones that you need are capabilities and user_level

In this case it’s already admin with right user level of course, but if it’s a user that needs to be made admin you change:
– capabilities to a:1:{s:13:”administrator”;b:1;}
– user_level to 13

Et les jeux sont faits!

The codes for each role are:
– Subscriber a:1:{s:10:”subscriber”;b:1;} and user level 0
– Contributor a:1:{s:11:”contributor”;b:1;} and user level 1
– Author a:1:{s:6:”author”;b:1;} and user level 2
– Editor a:1:{s:6:”editor”;b:1;} and user level 7