October 11, 2024
Not to be confused with Block Editor action and filter hooks, the Block editor also has something called the Block Hooks API
This API provides a way to automatically insert your block next to all instances of a specific block in block-based templates, template parts, and patterns of a WordPress block theme.
In this lesson, you’ll learn about the specific requirements needed in order to use the Block Hooks API, and how to use it to automatically insert a block next to all instances of the target block.