After a WordPress plugin I can login as admin, but don't have any permissions.
$ wp role list
is missing the administrator role.
What can I do?
After a WordPress plugin I can login as admin, but don't have any permissions.
$ wp role list
is missing the administrator role.
What can I do?
Share Improve this question asked Sep 16, 2021 at 13:33 AlexAlex 1471 silver badge7 bronze badges1 Answer
Reset to default 1You can recreate the administrator role:
wp --skip-plugins role create administrator Administrator
wp --skip-plugins role reset administrator
Restored 61 capabilities to and removed 0 capabilities from 'administrator' role.
Success: Role reset.
wp --skip-plugins user set-role YOURUSERNAMEHERE administrator