Telling register_post_type to not support anything
|Reported by:||sc0ttkclark||Owned by:||nacin|
|Component:||Posts, Post Types||Keywords:||has-patch commit|
As the use of WP becomes more complex, post types are getting used in more interesting ways. This is evident by a use-case for passing an empty array to the 'supports' argument. Essentially, the Post Type becomes an object relatable to taxonomies and custom fields.
If an empty array() is sent (or any empty value), WordPress currently sets the defaults to 'title' and 'editor':
I believe an alternate value should be able to passed such as false, where no defaults will get set. Currently, my work around is to pass an array, but place a faux value within it like '_placeholder'. This keeps the array from being empty and defaults set.
I'll have the patch ready by morning but feel free to provide any input positive/negative on this.
Change History (9)
- Keywords commit added; dev-feedback removed
- Milestone changed from Awaiting Review to 3.5