[wp-trac] [WordPress Trac] #60574: Block Hooks: Add new `hooked_block` filter
WordPress Trac
noreply at wordpress.org
Tue Feb 20 09:25:26 UTC 2024
#60574: Block Hooks: Add new `hooked_block` filter
-----------------------------+-------------------------
Reporter: Bernhard Reiter | Owner: swissspidy
Type: task (blessed) | Status: closed
Priority: normal | Milestone: 6.5
Component: Editor | Version: trunk
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses:
-----------------------------+-------------------------
Changes (by swissspidy):
* owner: (none) => swissspidy
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"57660" 57660]:
{{{
#!CommitTicketReference repository="" revision="57660"
Block Hooks: Introduce a new `hooked_block` filter.
This is a counterpart to the dynamic `hooked_block_{$block_type}` filter
introduced in [57354],
which makes it easier to modify all hooked blocks prior to insertion.
Also adds the hooked block type as an additional argument to both filters
for consistency.
Props bernhard-reiter, swissspidy.
Fixes #60574.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60574#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list