Filters the list of hooked block types for a given anchor block type and relative position.
$hooked_block_typesstring[]
$relative_positionstring
'before', 'after', 'first_child', or 'last_child'.$anchor_block_typestring
$contextWP_Block_Template|WP_Post|array
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 );
| Version | Description |
|---|---|
| 6.4.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/hooked_block_types