[wp-trac] [WordPress Trac] #46187: Add a dynamic hook to filter the content of a single block.
WordPress Trac
noreply at wordpress.org
Tue Nov 24 04:20:32 UTC 2020
#46187: Add a dynamic hook to filter the content of a single block.
-----------------------------+------------------------------
Reporter: manzoorwani.jk | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version:
Severity: normal | Resolution:
Keywords: has-patch close | Focuses:
-----------------------------+------------------------------
Comment (by manzoorwani.jk):
@noisysocks benefit of that dynamic filter is written in the description -
i.e. to avoid unnecessary if conditions inside the filter callback and
also to avoid calling the callback on every single block.
Also, why `core/image` cannot work in a filter name? Doesn't it simply
become an array index?
FYI, `/` is pretty fine for array indices.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46187#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list