[wp-trac] [WordPress Trac] #16828: Add filter on initial_meta_boxes for nav menu

WordPress Trac wp-trac at lists.automattic.com
Thu Mar 10 21:08:40 UTC 2011


#16828: Add filter on initial_meta_boxes for nav menu
---------------------------+-----------------------------
 Reporter:  aaroncampbell  |      Owner:
     Type:  enhancement    |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Menus          |    Version:
 Severity:  normal         |   Keywords:
---------------------------+-----------------------------
 When you create a custom post type with `show_in_nav_menus = true` the
 metabox in Appearance->Menus is hidden to all new users.  This is
 especially annoying for multi-site setups.  The issue is in
 `wp_initial_nav_menu_meta_boxes()` where it sets the initial meta boxes:
 {{{
 $initial_meta_boxes = array( 'nav-menu-theme-locations', 'add-custom-
 links', 'add-page', 'add-category' );
 }}}

 I'd settle for a filter on that, but it seems like a more complete fix
 would be to add the filter with a default function hooked into it which
 would add post types with `show_in_nav_menus = true` to the list.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16828>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list