Make WordPress Core

Opened 9 years ago

Last modified 9 years ago

#32832 closed enhancement

Menu Customizer: Hook tracking — at Initial Version

Reported by: celloexpressions's profile celloexpressions Owned by:
Milestone: 4.3 Priority: normal
Severity: normal Version: 4.3
Component: Customize Keywords:
Focuses: docs Cc:

Description

This ticket is to track remaining hook needs within Menus in the Customizer, to alleviate confusion, and a slew of duplicate tickets being opened to address various issues that sound different but are actually the same.

Here is a summary of all places in the menus UI that should be hook-able, and the suggested approach to allowing devs to leverage these:

  • Menus Panel view - menu list, add new menu -> Customizer API (add_section)
  • Pre/post-menu name -> Customizer API (add_control)
  • Pre/post menu control/theme locations -> Customizer API (add_control)
  • Pre/post auto_add control -> Customizer API (needs to be re-split into a separate control) (add_control)
  • Screen Options -> existing filter manage_nav-menus_columns, should scope to Customizer when using, likely also requires some css when adding options
  • Menus help text -> Customizer API (get_panel, can also add to sections or elsewhere as needed)
  • Menu Locations section -> Customizer API (add_control)
  • Available items panel -> use show_in_nav_menus to show/hide post types/taxonomies, hooks to add custom sections (after Links or at bottom) handled in #32708
  • Menu item forms -> API or action to add custom options between description and original links (also needs support for saving the data as post meta), use CSS & screen options to hide core UI (to do). See #18584 (and at least 5 duplicate tickets linked there). This is the primary thing that this ticket needs to address, and @westonruter has started thinking about implementation approaches.

Current tasks remaining for implementing the above plan:

  • Separate the auto-add checkbox out from the menu control so that it can be removed or things added before/after it (this ticket)
  • Hooks for extending the available menu items panel (#32708)
  • Hooks/API for extending menu item controls/forms (this ticket)

Change History (0)

Note: See TracTickets for help on using tickets.