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

How do I disable the block marketplace for Editors?

programmeradmin3浏览0评论

I don't want users with the role of Editor to be able to add block from the WordPress Block marketplace.

How do I disable this capability by editing the theme's functions.php file?

I don't want users with the role of Editor to be able to add block from the WordPress Block marketplace.

How do I disable this capability by editing the theme's functions.php file?

Share Improve this question edited Sep 27, 2020 at 15:20 fuxia 107k38 gold badges255 silver badges459 bronze badges asked Sep 27, 2020 at 15:14 mmcglynnmmcglynn 3861 gold badge3 silver badges11 bronze badges 1
  • WP has a block directory, is that what you mean by Marketplace? It's not possible to buy blocks via the block editoor – Tom J Nowell Commented Sep 27, 2020 at 15:49
Add a comment  | 

1 Answer 1

Reset to default 1

The block directory is already disabled for editors.

In order to use the block directory you must be logged in as a user that can install plugins. This would be administrators on single sites and super admins on multisites.

Unless you have granted this ability to editors, they cannot use the block directory.

发布评论

评论列表(0)

  1. 暂无评论