[wp-trac] [WordPress Trac] #14761: unregister_post_type()

WordPress Trac noreply at wordpress.org
Thu Jun 11 14:28:40 UTC 2015


#14761: unregister_post_type()
-----------------------------------------+-----------------------------
 Reporter:  nacin                        |       Owner:  chriscct7
     Type:  enhancement                  |      Status:  assigned
 Priority:  normal                       |   Milestone:  Future Release
Component:  Posts, Post Types            |     Version:  2.9
 Severity:  normal                       |  Resolution:
 Keywords:  needs-patch early 4.4-early  |     Focuses:
-----------------------------------------+-----------------------------

Comment (by kraftbj):

 Replying to [comment:29 MikeSchinkel]:
 > Replying to [comment:28 nacin]:
 > > The other types, revisions, attachments, and nav menu items, should
 probably never be allowed to be unregistered.
 >
 > Agreed on `'revision'` and `'attachment'` but you might consider
 `'nav_menu_item'` as something we can unregister. The current Nav Menu
 system is pretty heavy and for fully custom commissioned themes some
 professional site builders are just building menus directly into the
 themes since their designs don't anticipate new menu items without
 developer involvement.  For those situations it would be nice to be able
 to fully disable the Nav Menu systems.

 There's probably a cleaner way to deactivate the nav menu system (even if,
 initially, it simply remove all admin UI items) instead of deactivating
 the dependent post_type. That post type exists for the nav menu system,
 the nav menu system doesn't exist to support the post type.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/14761#comment:35>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list