wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



hooked_block_types › WordPress Filter Hooks

Seit6.4.0
Veraltetn/v
apply_filters( 'hooked_block_types', $hooked_block_types, $relative_position, $anchor_block_type, $context )
Parameter: (4)
  • (string[]) $hooked_block_types The list of hooked block types.
    Erforderlich: Ja
  • (string) $relative_position The relative position of the hooked blocks. Can be one of 'before', 'after', 'first_child', or 'last_child'.
    Erforderlich: Ja
  • (string) $anchor_block_type The anchor block type.
    Erforderlich: Ja
  • (WP_Block_Template|WP_Post|array) $context The block template, template part, `wp_navigation` post type, or pattern that the anchor block belongs to.
    Erforderlich: Ja
Definiert in:
Codex:

Filters the list of hooked block types for a given anchor block type and relative position.





Quellcode

$hooked_block_types = apply_filters( 'hooked_block_types', $hooked_block_types, $relative_position, $anchor_block_type, $context );