[wp-trac] [WordPress Trac] #32712: Customizer Menus: add a way to extend available menu items
WordPress Trac
noreply at wordpress.org
Thu Jun 18 22:29:48 UTC 2015
#32712: Customizer Menus: add a way to extend available menu items
--------------------------+------------------------------
Reporter: designsimply | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Customize | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by designsimply):
Also copying in @westonruter's previous comment from
https://github.com/voldemortensen/menu-
customizer/issues/103#issuecomment-111257349 because it's worth noting:
> Yes, this is something that needs to be added at some point. I have an
initial TODO for where we can pick up additional controls added:
https://github.com/WordPress/WordPress/blob/f5fa907f77ea0b3e1035de96c6de6c1be37b4688
/wp-admin/js/customize-nav-menus.js#L1061
>
> What comes to mind to implement this is:
>
> 1. Ability to add new controls to the template.
> 1. Connect the new controls to the setting, with custom validation
logic.
> 1. Add support for filtering the postmeta for a given nav_menu_item so
that any custom fields will get previewed as expected.
> 1. Update the WP_Customize_Nav_Menu_Item_Setting to store any non-core
attributes in postmeta, and draw from postmeta when obtaining the setting
value.
>
> The first two can be done in JS now, although there isn't a nice API for
doing it.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32712#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list