Skip to content

Commit

Permalink
65454-Update-block-registration (WordPress#65455)
Browse files Browse the repository at this point in the history
Remove notes about block hooks only supporting static theme elements.

Fixes WordPress#65454

Co-authored-by: jonathanbossenger <[email protected]>
Co-authored-by: gziolo <[email protected]>
Co-authored-by: shail-mehta <[email protected]>
  • Loading branch information
4 people authored Feb 17, 2025
1 parent 590af0a commit 8783607
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions docs/reference-guides/block-api/block-registration.md
Original file line number Diff line number Diff line change
Expand Up @@ -312,10 +312,6 @@ The key is the name of the block (`string`) to hook into, and the value is the p
}
```

It’s crucial to emphasize that the Block Hooks feature is only designed to work with _static_ block-based templates, template parts, and patterns. For patterns, this includes those provided by the theme, from [Block Pattern Directory](https://wordpress.org/patterns/), or from calls to [`register_block_pattern`](https://developer.wordpress.org/reference/functions/register_block_pattern/).

Block Hooks will not work with post content or patterns crafted by the user, such as synced patterns, or theme templates and template parts that have been modified by the user.

## Block collections

## `registerBlockCollection`
Expand Down

0 comments on commit 8783607

Please sign in to comment.