[wp-trac] [WordPress Trac] #57140: Add filters to allow themes and plugins to pass HTML attributes to different Nav Walker output
WordPress Trac
noreply at wordpress.org
Thu Nov 17 23:13:16 UTC 2022
#57140: Add filters to allow themes and plugins to pass HTML attributes to
different Nav Walker output
----------------------------------+-------------------------------------
Reporter: davidwebca | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Menus | Version: trunk
Severity: minor | Keywords: has-patch needs-testing
Focuses: javascript, template |
----------------------------------+-------------------------------------
Currently, Nav Walkers allow custom HTML attributes to be passed to the
link (<a>) element only. There are many instances, like when creating a
menu with a declarative JavaScript library, where it would be ideal to be
able to pass down HTML attributes to any of the built element. UL and LI
are currently excluded of this.
Here's a link to the pull request: https://github.com/WordPress/wordpress-
develop/pull/3645
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57140>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list