[wp-trac] [WordPress Trac] #59743: Block Hooks: Allow child insertion into Navigation block
WordPress Trac
noreply at wordpress.org
Thu Oct 26 08:59:23 UTC 2023
#59743: Block Hooks: Allow child insertion into Navigation block
-----------------------------+--------------------
Reporter: Bernhard Reiter | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: 6.5
Component: General | Version:
Severity: normal | Keywords:
Focuses: |
-----------------------------+--------------------
One of the original use cases for Block Hooks was inserting a Login/out
block into (i.e. as the last child of) the Navigation block. Ironically,
that isn't currently possible, due to the nature of the Navigation block
and how it conditionally renders its child blocks or falls back to
existing menus.
It's possible to work around this limitation by inserting a hooked block
''after'' the Navigation block, which is something we've e.g. done with
the Mini Cart example that we've used in some of our documentation, but
that's still suboptimal and plainly untenable for a text link such as the
Login/out block.
We should try to make this work for 6.5.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59743>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list