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

Manage Roles and Capabilities on Multi-site

programmeradmin1浏览0评论

I am trying to enable some features for Subscriber user role in a eCommerce theme where originally had be set for Admin role and I like to modify that. I tried AAM plugin but for this specific site it does not show those features so I can place a check or un-check them. I know AAM or any alike plugin serve as an interface and there are ways to look through the files/codes to make this happen. I found in wp-includes/capabilities.php is where this gets managed but I am assuming not for each specif site as I can't find anything about other sites in there. Does each site have its own capabilities.php somewhere?

I am trying to enable some features for Subscriber user role in a eCommerce theme where originally had be set for Admin role and I like to modify that. I tried AAM plugin but for this specific site it does not show those features so I can place a check or un-check them. I know AAM or any alike plugin serve as an interface and there are ways to look through the files/codes to make this happen. I found in wp-includes/capabilities.php is where this gets managed but I am assuming not for each specif site as I can't find anything about other sites in there. Does each site have its own capabilities.php somewhere?

Share Improve this question asked Mar 24, 2015 at 17:31 Dave_ODave_O 551 gold badge2 silver badges9 bronze badges 1
  • Each sites loads the capabilities and stores it as metadata. You have to modify the metadata to modify the capabilities for a specific site. – user42826 Commented Mar 24, 2015 at 18:18
Add a comment  | 

2 Answers 2

Reset to default 0

I believe you'd need to modify user roles on each site individually (if I'm understanding your question correctly).

There's a great plugin I use frequently called WPFront User Role Editor that allows you to check/uncheck user capabilities like you mentioned. The free version should be fine for what you're trying to do. I personally use the paid version just because I like to have the extra options when I need them, but 90% of the time the free one works fine.

You can view the plugin here

AAM is by far more powerful and it's since version 6.3.0 fully compatible with WordPress multisite as mentioned on its website.

It also has the functionality to sync capabilities/permissions across all sites on the network as described on the above mentioned article.

发布评论

评论列表(0)

  1. 暂无评论