[wp-trac] [WordPress Trac] #59399: Blocks: Implement `insert_hooked_blocks()`

WordPress Trac noreply at wordpress.org
Tue Sep 19 18:46:10 UTC 2023


#59399: Blocks: Implement `insert_hooked_blocks()`
-----------------------------+-----------------------------
 Reporter:  Bernhard Reiter  |      Owner:  Bernhard Reiter
     Type:  enhancement      |     Status:  assigned
 Priority:  normal           |  Milestone:  6.4
Component:  General          |    Version:
 Severity:  normal           |   Keywords:
  Focuses:                   |
-----------------------------+-----------------------------
 For #59313, we need a function that will plug into parsed block tree
 traversal and serialization ([56620]). For each block traversed, it will
 obtain the list of all hooked blocks that use it as their anchor block
 (`get_hooked_blocks`, [56610]), and insert those hooked blocks into the
 parsed block tree (`insert_inner_block`, `prepend_inner_block`,
 `append_inner_block`, [56618]).

 We'll tentatively call it `insert_hooked_blocks`.

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


More information about the wp-trac mailing list