Extending a menu item in the Navigation block #50787
Labels
[Block] Navigation
Affects the Navigation Block
[Feature] Extensibility
The ability to extend blocks or the editing experience
[Type] Enhancement
A suggestion for improvement.
What problem does this address?
I'm the author of Nav Menu Roles which adds allows a site owner to hide/show some menu links depending on the visitor's user role.
In the old nav-menus.php, I do this by adding a user interface into the menu items:
But to my knowledge there's currently no way to extend the interface of a menu item in the Navigation block to display/collect additional menu item meta. Meta can already be saved/fetched via API as that was needed to get compatibility with the navigation editor in the Customizer.
What is your proposed solution?
I think some sort of extensibility is needed. How can plugins add their fields here? How can we modify the output, etc?
The text was updated successfully, but these errors were encountered: