[wp-trac] [WordPress Trac] #9674: Better support for custom post types
WordPress Trac
wp-trac at lists.automattic.com
Fri Jan 8 13:43:11 UTC 2010
#9674: Better support for custom post types
------------------------------------+---------------------------------------
Reporter: wnorris | Owner: ryan
Type: task (blessed) | Status: reopened
Priority: normal | Milestone: 3.0
Component: Administration | Version: 2.9
Severity: normal | Resolution:
Keywords: has-patch tested early |
------------------------------------+---------------------------------------
Comment(by mikeschinkel):
'''@dd32 I'd like to see register_post_type() being able to specifically
register those items'''
+1
'''@dd32 Allow for register_post_type() to enable/disable revisioning of
new post_Types'''
+1
Also, in working on a UI that allows for users to add their own post types
and editing metadata for all post types I'm recognizing some needs. We
ideally need register_post_type() be something done on activation rather
than init and registered post types persisted to a wp_option. The reason
for this is to allow plugins to manage and save the information in the
post_types via an admin UI and to have those saved post types loaded by
WordPress. Yes you can mix and match the two but it creates chicken-and-
egg type issues that would be much more easily handled by doing it once.
My plug is already saving to a 'post_types' wp_option but some other
plugin could do it in an incompatible way and I really think this is
foundational architecture that needs to be shared. If persisted by
register_post_type() then plugins wouldn't need to persist themselves and
thus wouldn't do it incompatibly.
We may also need an optional 3rd parameter of 'locked' or 'editable' for
the core attribute of a post_type's name (i.e. 'page', 'post',
'attachment', 'revision') so that admin UIs for user added post types can
know which post types can updated/deleted and which cannot.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9674#comment:121>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list