[wp-trac] [WordPress Trac] #27286: create menu page for custom post types
WordPress Trac
noreply at wordpress.org
Wed Mar 5 21:13:21 UTC 2014
#27286: create menu page for custom post types
-------------------------+-----------------------------
Reporter: norcross | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Menus | Version: trunk
Severity: normal | Keywords:
Focuses: |
-------------------------+-----------------------------
Currently, there are dedicated functions for adding new items to a top-
level navigation item, such as `add_posts_page`, `add_media_page`,
`add_links_page`, and so on. These all act as a wrapper for the
`add_submenu_page`. However, there is no dedicated function for custom
post types. I am proposing to add a new function called
`add_post_type_page` that works in the same way. It's basically a copy of
`add_posts_page` with an additional parameter for the registered CPT.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27286>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list