wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



hooked_block_types › Les Filtres WordPress

Depuis6.4.0
Dépréciéen/a
apply_filters( 'hooked_block_types', $hooked_block_types, $relative_position, $anchor_block_type, $context )
Paramètres: (4)
  • (string[]) $hooked_block_types The list of hooked block types.
    Requis: Oui
  • (string) $relative_position The relative position of the hooked blocks. Can be one of 'before', 'after', 'first_child', or 'last_child'.
    Requis: Oui
  • (string) $anchor_block_type The anchor block type.
    Requis: Oui
  • (WP_Block_Template|WP_Post|array) $context The block template, template part, `wp_navigation` post type, or pattern that the anchor block belongs to.
    Requis: Oui
Défini(e) dans:
Codex:

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





Source

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