[wp-trac] [WordPress Trac] #32832: Menu Customizer: Hook tracking
WordPress Trac
noreply at wordpress.org
Tue Jul 28 04:20:21 UTC 2015
#32832: Menu Customizer: Hook tracking
------------------------------+-------------------------------
Reporter: celloexpressions | Owner: celloexpressions
Type: task (blessed) | Status: assigned
Priority: normal | Milestone: 4.3
Component: Customize | Version: trunk
Severity: normal | Resolution:
Keywords: needs-patch | Focuses: docs
------------------------------+-------------------------------
Comment (by celloexpressions):
Let's assume it's all in postmeta. Menu items are post objects, so custom
fields within them should be stored that way just like core ones are. If
you need to do something more complicated than that, you're probably going
to need to make some more fundamental changes.
The plugins linked on #18584 are:
- https://wordpress.org/plugins/nav-menu-roles/
- https://wordpress.org/plugins/add-descendants-as-submenu-items/
The primary thing I'd want to use it for would be to add an option to set
an image or icon for a menu item. I believe there are several plugins that
do that. If we have a do_action within the control template, that would
allow for pretty much anything they may need, then if we have support for
registering extra fields to be saved in the setting that would be the next
step for support, as outlined above.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32832#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list