Block Manager : enhance to permit role management
-
Hi Nick
again, thanks for this fabulous / awesome plugin.
As an agency, i frequently need to filter the blocks available in the inserter to my end customers (mostly editors).
Just a quick tip :
- for that purpose, i use the hook you’ve documented there https://developer.www.ads-software.com/news/2024/01/29/how-to-disable-specific-blocks-in-wordpress/#using-a-disallow-list to hide “third part plugin” blocks to customers (editor).
- i get the exact list of block names from the browser console with the
wp.blocks.getBlockTypes()
, - then i can pick up what blocks i want to unregistrer to populate the $disallowed_blocks list array.
> Would be fine to enhance your plugin so we can set the block inserter visibility this from within it / from wp-admin/options-general.php?page=block-visibility-settings&tab=block-manager
Maybe by addding somewhere a “keep only core blocks” option, to keep the UX lean ?
keep it up ??
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- You must be logged in to reply to this topic.