[wp-trac] [WordPress Trac] #9674: Better support for custom post types
WordPress Trac
wp-trac at lists.automattic.com
Thu Dec 31 11:34:51 UTC 2009
#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 scribu):
Replying to [comment:83 mikeschinkel]:
> As I continue to work with the post type plugin I realize there's a need
for a hook 'register_post_types' to be called from within
create_initial_post_types() ''after'' the standard post types are
registered.
> {{{
> do_action('register_post_types');
> }}}
> Adding this hook can allow those who needs to register a post type to do
it at the right time instead of via 'init.' This will then allow a plug to
assume within the 'init' hook that all post types that need to have been
registered have been. IOW, this hook would solve the chicken or egg
problem I'm recognizing.
Wouldn't using hook priorities be enough?
{{{
Priority 0: core post types
Priority 10: additional post types
Priority 100: plugin that assumes all post types are registered
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9674#comment:85>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list