From 2526eab870476dd825758ead7cc48ddccfede138 Mon Sep 17 00:00:00 2001 From: bernhard-reiter Date: Thu, 25 Jan 2024 14:18:43 +0000 Subject: [PATCH] Block Hooks: Amend PHPDoc for `hooked_block_{$hooked_block_type}` filter. Add missing explanation of the dynamic part of the hook name. Follow-up [57354]. Props swissspidy. See #59572, #60126. git-svn-id: https://develop.svn.wordpress.org/trunk@57355 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/blocks.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wp-includes/blocks.php b/src/wp-includes/blocks.php index 5c072e324b..dcb899c9e5 100644 --- a/src/wp-includes/blocks.php +++ b/src/wp-includes/blocks.php @@ -839,6 +839,8 @@ function insert_hooked_blocks( &$parsed_anchor_block, $relative_position, $hooke /** * Filters the parsed block array for a given hooked block. * + * The dynamic portion of the hook name, `$hooked_block_type`, refers to the block type name of the specific hooked block. + * * @since 6.5.0 * * @param array $parsed_hooked_block The parsed block array for the given hooked block type.