Hide gutenberg option blocks

Some of the panels related to the entire post (e.g. the featured image, excerpt)
can be removed and
https://github.com/WordPress/gutenberg/issues/17281 shows how.

e.g.

wp.data.dispatch( 'core/edit-post').removeEditorPanel( 'featured-image' );
wp.data.dispatch( 'core/edit-post').removeEditorPanel( 'post-excerpt' );

The sidebar is also used for additional block options and there’s currently no cohesive, consistent way to manage whether a block’s options are available to your editors.

Leave a Comment