Skip to content

Commit

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

Fixes #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

1 comment on commit 8783607

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in 8783607.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/13364134718
📝 Reported issues:

Please sign in to comment.