最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

users - No more administrator rolespermissions after WordPress upgrade

programmeradmin3浏览0评论

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 badges
Add a comment  | 

1 Answer 1

Reset to default 1

You 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
发布评论

评论列表(0)

  1. 暂无评论