[wp-trac] [WordPress Trac] #46187: Add a dynamic hook to filter the content of a single block.
WordPress Trac
noreply at wordpress.org
Mon Feb 1 18:04:52 UTC 2021
#46187: Add a dynamic hook to filter the content of a single block.
---------------------------------------------+-----------------------------
Reporter: manzoorwani.jk | Owner: SergeyBiryukov
Type: enhancement | Status: closed
Priority: normal | Milestone: 5.7
Component: Editor | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests commit | Focuses:
---------------------------------------------+-----------------------------
Changes (by SergeyBiryukov):
* owner: (none) => SergeyBiryukov
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"50123" 50123]:
{{{
#!CommitTicketReference repository="" revision="50123"
Editor: Introduce a dynamic filter for the content of a single block:
`render_block_{$this->name}`
This complements the existing `render_block` hook and allows for filtering
the content of a specific block without having to use conditionals inside
the filter callback.
Props manzoorwani.jk, noisysocks, birgire, johnbillion.
Fixes #46187.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46187#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list