[wp-trac] [WordPress Trac] #59313: Implement Block Hooks

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


#59313: Implement Block Hooks
-------------------------------------------------+-------------------------
 Reporter:  Bernhard Reiter                      |       Owner:  Bernhard
                                                 |  Reiter
     Type:  enhancement                          |      Status:  assigned
 Priority:  high                                 |   Milestone:  6.4
Component:  Editor                               |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch gutenberg-merge has-unit-  |     Focuses:
  tests                                          |
-------------------------------------------------+-------------------------

Comment (by gziolo):

 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/59313#comment:50>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list