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
1 Answer
Reset to default 1The 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.