From afa95b1466e1e829104204606b4c056142b83c4b Mon Sep 17 00:00:00 2001 From: Jonathan Bossenger Date: Mon, 17 Feb 2025 08:19:43 +0200 Subject: [PATCH] 65454-Update-block-registration (#65455) Remove notes about block hooks only supporting static theme elements. Fixes #65454 Co-authored-by: jonathanbossenger Co-authored-by: gziolo Co-authored-by: shail-mehta --- docs/reference-guides/block-api/block-registration.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/docs/reference-guides/block-api/block-registration.md b/docs/reference-guides/block-api/block-registration.md index 92be19ee48c9fa..a2f9fac64f6165 100644 --- a/docs/reference-guides/block-api/block-registration.md +++ b/docs/reference-guides/block-api/block-registration.md @@ -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`