[wp-trac] [WordPress Trac] #59313: Implement Block Hooks
WordPress Trac
noreply at wordpress.org
Tue Sep 19 12:48:57 UTC 2023
#59313: Implement Block Hooks
-------------------------------------------------+-------------------------
Reporter: Bernhard Reiter | Owner: Bernhard
| Reiter
Type: enhancement | Status: assigned
Priority: high | Milestone: 6.4
Component: Editor | Version:
Severity: normal | Resolution:
Keywords: has-patch gutenberg-merge has-unit- | Focuses:
tests |
-------------------------------------------------+-------------------------
Comment (by gziolo):
In [changeset:"56620" 56620]:
{{{
#!CommitTicketReference repository="" revision="56620"
Blocks: Introduce a variation of serialize blocks helper with traversing
Introduces two new functions `traverse_and_serialize_blocks` and
`traverse_and_serialize_block` with the additional `$callback` argument.
It is possible to pass parent block, block index, chunk index to the
callback argument.
Reverts changes applied to `serialize_blocks` and `serialize_block` in
#59327 with [56557].
Props ockham, mukesh27.
See #59313.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59313#comment:79>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list