Extending Gutenberg
summary
Shows how to extend the Gutenberg editor by creating blocks with registerBlockType and when to implement features in JavaScript versus PHP, and points to recommended boilerplates and tutorials. Describes how themes use add_theme_support to expose wide images, color presets and font sizes, how templates and template locking set default block layouts, and how content is saved as HTML with comment-marked blocks for backwards compatibility. Covers UI extension with SlotFill and registerPlugin for sidebars and popovers, and the Redux-like data store API (select/subscribe/dispatch).
AI-written summary · about
