[wp-trac] [WordPress Trac] #60574: Block Hooks: Add new `hooked_block` filter

WordPress Trac noreply at wordpress.org
Mon Feb 19 14:56:47 UTC 2024


#60574: Block Hooks: Add new `hooked_block` filter
-----------------------------+-----------------------------
 Reporter:  Bernhard Reiter  |      Owner:  (none)
     Type:  enhancement      |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  General          |    Version:
 Severity:  normal           |   Keywords:
  Focuses:                   |
-----------------------------+-----------------------------
 In [57354], a new `hooked_block_{$block_type}` filter was introduced that
 allows extenders to specify attributes and inner blocks for hooked blocks.

 It was
 [https://wordpress.slack.com/archives/C02RQBWTW/p1706191528327749?thread_ts=1706190426.390279&cid=C02RQBWTW
 pointed out] that for filters with a dynamic name portion like this, it is
 customary to have a "non-dynamic" counterpart filter (i.e. `hooked_block`,
 in this case).

 There are
 [https://wordpress.slack.com/archives/C02RQBWTW/p1706191801996019?thread_ts=1706190426.390279&cid=C02RQBWTW
 a few concerns] around the implications for the function signatures for
 each filter. We can discuss them here (or on a PR that implements this
 feature) and decide how to proceed.

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


More information about the wp-trac mailing list