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

WordPress Trac wp-trac at lists.automattic.com
Thu Sep 2 12:00:18 UTC 2010

#14761: unregister_post_type()
 Reporter:  nacin         |       Owner:                 
     Type:  defect (bug)  |      Status:  new            
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Post Types    |     Version:                 
 Severity:  normal        |    Keywords:                 
 Two use cases:

  1. Remove a core post type. Means that the admin menus should respond in
 kind, though certain aspects of core like query/rewrite might not like
 this. Not the main use case regardless.

  2. Removing a post type of another plugin, or potentially more likely, a
 parent theme.

 Example barebones function: http://wordpress.pastebin.com/VexHkgig

 Related, unregister_taxonomy() #11058 and
 unregister_taxonomy_for_object_type(): #14482

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

More information about the wp-trac mailing list