Customizing core blocks for clients
summary
Uses PHP's allowed_block_types filter, admin JavaScript (enqueueing scripts and unregisterBlockStyle), and theme.json presets to restrict core blocks — heading, paragraph, image, button — removing colors, font sizes, rounded image style and extra button attributes. Registers a custom button style to match design and removes border radius via theme.json; disabling the button width control still open since 2020 remains unsolved. Overall approach narrows editor choices and preserves the design system while one control gap persists.
AI-written summary · about
