[wp-trac] [WordPress Trac] #60008: Block Hooks: Store information about known hooked blocks in anchor block metadata

WordPress Trac noreply at wordpress.org
Mon Dec 4 15:13:17 UTC 2023


#60008: Block Hooks: Store information about known hooked blocks in anchor block
metadata
-----------------------------+-----------------------------
 Reporter:  Bernhard Reiter  |      Owner:  Bernhard Reiter
     Type:  enhancement      |     Status:  assigned
 Priority:  normal           |  Milestone:  6.5
Component:  General          |    Version:
 Severity:  normal           |   Keywords:
  Focuses:                   |
-----------------------------+-----------------------------
 In order to allow injection of hooked blocks into modified layouts (i.e.
 templates, parts, and patterns) (see #59646), we need a different
 technique for the frontend to know whether or not to insert a hooked
 block.

 An example scenario is described in
 https://core.trac.wordpress.org/ticket/59646#comment:2. It is shown there
 that an attribute of the anchor block is a suitable location to persist
 that information; the global `metadata` field is an obvious choice, as it
 is guaranteed to be available in any possible block.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/60008>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list