WordPress / developer-blog-content

In this GitHub space, WordPress team coordinate content to be published on the Developer Blog. Discussion and montly meetings (first Thu) in WP Slack #core-dev-blog
40 stars 5 forks source link

Share examples of using the new filter blockEditor.useSetting.before #31

Closed annezazu closed 1 year ago

annezazu commented 1 year ago

Pulled from this PR: https://github.com/WordPress/gutenberg/pull/45089 This would be a great filter to highlight, especially when thinking about additional curation options with the block editor.

This allows the injection of block settings into the block editor before everything is rendered, so we are able to customize the settings available for a block however we want.

This unlocks a ton of neat options but definitely needs to be explained in detail and documented in general.