Filters the list of hooked block types for a given anchor block type and relative position.
$hooked_block_typesstring[]$relative_positionstring$anchor_block_typestring$contextWP_Block_Template|WP_Post|arraywp-includes/blocks.php:918insert_hooked_blocks()wp-includes/blocks.php:998set_ignored_hooked_blocks_metadata() * @param string $relative_position The relative position of the hooked blocks. * Can be one of 'before', 'after', 'first_child', or 'last_child'. * @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(),Introduced in 6.4.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.