[wp-trac] [WordPress Trac] #49442: Request: filter for parse_blocks() result
WordPress Trac
noreply at wordpress.org
Sat Feb 15 06:38:03 UTC 2020
#49442: Request: filter for parse_blocks() result
-----------------------------+-----------------------------
Reporter: dougwollison | Owner: (none)
Type: feature request | Status: new
Priority: normal | Milestone: Future Release
Component: General | Version: 5.0
Severity: normal | Resolution:
Keywords: | Focuses:
-----------------------------+-----------------------------
Changes (by johnbillion):
* version: trunk => 5.0
* milestone: Awaiting Review => Future Release
Comment:
I think this is the intention of the `block_parser_class` a few lines
above. If you need to heavily customise the block parsing and result then
you can use this filter to specify your own class that does so. If you
extend the `WP_Block_Parser` class then you can reuse its methods.
Does that suit your needs @dougwollison or do you think there's still
value in having a filter applied to the parsed result?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49442#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list