[wp-trac] [WordPress Trac] #14761: unregister_post_type()
WordPress Trac
noreply at wordpress.org
Thu Dec 17 22:21:37 UTC 2015
#14761: unregister_post_type()
-------------------------------+-----------------------------
Reporter: nacin | Owner:
Type: enhancement | Status: assigned
Priority: normal | Milestone: Future Release
Component: Posts, Post Types | Version: 2.9
Severity: normal | Resolution:
Keywords: needs-patch early | Focuses:
-------------------------------+-----------------------------
Comment (by swissspidy):
[attachment:14761.diff] is the beginning of a patch for this, based on
#28.
> * Remove the query var from the WP class, if one was registered.
> * Remove registered custom meta capabilities from
_post_type_meta_capabilities().
> * Remove all post type support.
> * Remove any rewrite tags, permastructs, and rules.
> * Remove the callback for handling any meta boxes.
> * Remove the post type from any taxonomies.
> * Remove the future post hook callback.
Need to implement `remove_rewrite_tag` and figure out how to properly
remove meta caps. Any help appreciated.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/14761#comment:37>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list