Gutenberg: addFilter to hook into the block editor components-toolbar

Created on 8 May 2020  路  2Comments  路  Source: WordPress/gutenberg

I'm trying to Hook into the block editor components-toolbar, but couldn't find any reference, my idea was to use a filter to remove some of the defaults block editor components toolbar items on all components.

Screen Shot 2020-05-07 at 20 27 53

Any hint is more than welcome, thanks

[Type] Question

Most helpful comment

Sweet! Thanks, @phpbits SlotFills of course!

All 2 comments

You can use PluginBlockSettingsMenuItem. Here's the docs link : https://developer.wordpress.org/block-editor/developers/slotfills/plugin-block-settings-menu-item/ 馃憤

Sweet! Thanks, @phpbits SlotFills of course!

Was this page helpful?
0 / 5 - 0 ratings