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

WordPress Trac noreply at wordpress.org
Mon Sep 18 12:40:26 UTC 2023


#59383: Blocks: Introduce helper function to retrieve hooked blocks
--------------------------------------+---------------------
 Reporter:  gziolo                    |       Owner:  gziolo
     Type:  enhancement               |      Status:  closed
 Priority:  normal                    |   Milestone:  6.4
Component:  Themes                    |     Version:  trunk
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+---------------------
Changes (by gziolo):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"56610" 56610]:
 {{{
 #!CommitTicketReference repository="" revision="56610"
 Blocks: Introduce helper function to retrieve hooked blocks

 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.

 Extracted from https://github.com/WordPress/wordpress-develop/pull/5158
 and covered with unit tests.

 Props ockham.
 Fixes #59383.
 }}}

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


More information about the wp-trac mailing list