[wp-trac] [WordPress Trac] #9674: Better support for custom post types
WordPress Trac
wp-trac at lists.automattic.com
Thu Dec 31 04:49:50 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 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.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9674#comment:83>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list