• Julian

    (@terribletankard)


    Hey there,

    Just did something stupid and assigned a custom role to my admin user with lesser capabilities. Now I’d like to revert that and remove the custom user role from that user.

    In the usermeta table there’s this: a:2:{s:13:"administrator";b:1;s:9:"sub_admin";b:1;}

    I’d like to remove the sub_admin role. Should I remove the b:1;s:9:"sub_admin";b:1; bit?

Viewing 1 replies (of 1 total)
  • Plugin Author Caseproof

    (@caseproof)

    Hi Julian,

    Based on the serialized array you have, you should change it like this to remove sub_admin:

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

    I hope that helps.

Viewing 1 replies (of 1 total)
  • The topic ‘Remove a role from a user via phpMyAdmin?’ is closed to new replies.