WordPress.org

Make WordPress Core

Opened 3 months ago

Last modified 3 months ago

#48133 new enhancement

Please add filter on wp walker li element

Reported by: BackuPs Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Menus Keywords:
Focuses: Cc:
PR Number:

Description

Can you please add a filter in the menu li elements so we can add structured data to the li element?

http://schema.org/SiteNavigationElement

Change History (1)

#1 @jrf
3 months ago

Just wondering: shouldn't the structured data be applied to the actual link ?
And if so, there is already a filter in place to add attributes to that nav_menu_link_attributes.

Note: See TracTickets for help on using tickets.