[wp-trac] [WordPress Trac] #59383: Blocks: Introduce helper function to retrieve hooked blocks

WordPress Trac noreply at wordpress.org
Mon Sep 18 10:49:25 UTC 2023


#59383: Blocks: Introduce helper function to retrieve hooked blocks
-------------------------+----------------------
 Reporter:  gziolo       |      Owner:  (none)
     Type:  enhancement  |     Status:  assigned
 Priority:  normal       |  Milestone:  6.4
Component:  Themes       |    Version:  trunk
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+----------------------
 In order to implement Block Hooks (see #59313), we added `block_hooks`
 field to the `WP_Block_Type` class, as well as to block registration
 related functions. In this follow-up, new helper function gets introduced
 that is going to compute the list of hooked blocks by other registered
 blocks for a given block type.

 This allows for a more modular approach that will eventually be extended
 to implement automatic insertion of hooked blocks (see #59313).

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


More information about the wp-trac mailing list