[wp-trac] [WordPress Trac] #14145: Allow custom post types to be a submenu
WordPress Trac
wp-trac at lists.automattic.com
Tue Aug 17 21:49:15 UTC 2010
#14145: Allow custom post types to be a submenu
-----------------------------+----------------------------------------------
Reporter: nacin | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: 3.1
Component: Post Types | Version:
Severity: normal | Keywords:
-----------------------------+----------------------------------------------
Changes (by t31os_):
* cc: wp-t31os@… (added)
Comment:
Andy i don't believe you're taking into consideration that post types
usually have several subitems, and setting `show_in_menu` only registers
the main/parent item for the post type (the link to
`edit.php?post_type=MYPOSTTYPE`), missing other items such as "Add New",
"Taxonomy 1", "Taxonomy 2" and so on... which would usually appear under a
post type's given menu (as with any post type, posts for example). I
personally think the function would serve little purpose if it doesn't
register the other items along with the main link to `edit.php` ...
We can already effectively move items by way of hooking onto `admin_menu`
and re-sorting or modifying the `$menu` array, etc..
Could you please clarify what this new parameter aims to do?
I've been dealing with the menu code over the last couple of weeks, and
i'd be happy to help once i understand the goal.. :)
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14145#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list