[wp-trac] [WordPress Trac] #59646: Block Hooks: Enable for user-modified templates/parts/patterns
WordPress Trac
noreply at wordpress.org
Thu Oct 26 08:43:52 UTC 2023
#59646: Block Hooks: Enable for user-modified templates/parts/patterns
-----------------------------+------------------------------
Reporter: Bernhard Reiter | Owner: Bernhard Reiter
Type: enhancement | Status: assigned
Priority: normal | Milestone: 6.5
Component: General | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
-----------------------------+------------------------------
Comment (by Bernhard Reiter):
Replying to [comment:2 Bernhard Reiter]:
> The syntax could be as follows:
>
> {{{
> <!-- wp:navigation {"blockHooks":{"after":["mycommerce/mini-cart"]}} -->
> }}}
As discussed with @matveb and @gziolo, we can probably flatten the syntax
by removing the relative position, i.e. something like
{{{
<!-- wp:navigation {"blockHooks":["mycommerce/mini-cart"]} -->
}}}
We're still brainstorming to find a more descriptive / less confusing name
for the attribute. We're also likely to put it inside of the `metadata`
attribute (that's been introduced on the client side to allow e.g. naming
of blocks IIRC).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59646#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list