hooked_block_types
hooked_block_types
Appears in: wordpress-6.4, wordpress-6.4.1, wordpress-6.4.2, wordpress-6.4.3, wordpress-6.5, wordpress-6.5.2, wordpress-6.5.3, wordpress-6.5.4, wordpress-6.5.5, wordpress-6.6, wordpress-6.6.1, wordpress-6.6.2, wordpress-6.7, wordpress-6.7.1, wordpress-6.7.2
Hook Type: action
See hook in action
Displaying hooks found in version: wordpress-6.7.2do_action('hooked_block_types') is found 2 times:
- /wp-includes/blocks.php line 918914915916917918919920921922923924
* @param string
$anchor_block_type
The anchor block type.
* @param WP_Block_Template|WP_Post|
array
$context
The block template, template part, `wp_navigation` post type,
*
or
pattern that the anchor block belongs to.
*/
$hooked_block_types
= apply_filters(
'hooked_block_types'
,
$hooked_block_types
,
$relative_position
,
$anchor_block_type
,
$context
);
$markup
=
''
;
foreach
(
$hooked_block_types
as
$hooked_block_type
) {
$parsed_hooked_block
=
array
(
'blockName'
=>
$hooked_block_type
,
'attrs'
=>
array
(),
- /wp-includes/blocks.php line 99809940995099609970998099910001001100210031004
?
$hooked_blocks
[
$anchor_block_type
][
$relative_position
]
:
array
();
/** This filter is documented in wp-includes/blocks.php */
$hooked_block_types
= apply_filters(
'hooked_block_types'
,
$hooked_block_types
,
$relative_position
,
$anchor_block_type
,
$context
);
if
(
empty
(
$hooked_block_types
) ) {
return
''
;
}
foreach
(
$hooked_block_types
as
$index
=>
$hooked_block_type
) {
$parsed_hooked_block
=
array
(