single-post.html

How do I extend blocks in the editor?

Question: How do I extend core blocks in the block editor?

Answer: Use WordPress APIs to provide alternative block styles or hook into the JavaScript filters such as blocks.registerBlockType.

Providing alternative block styles is something a theme might want to do. Hooking into JavaScript filters is more plugin territory.

Reference

Block Editor Handbook: Block Filters

WordPress version: 5.7.2

Gutenberg version: 10.8.0

© Copyright Herb Miller, Bobbing Wide 2021