[wp-trac] [WordPress Trac] #17447: Add 'register_post_type_args' hook
WordPress Trac
noreply at wordpress.org
Sun Feb 9 01:44:06 UTC 2014
#17447: Add 'register_post_type_args' hook
-------------------------------------------------+-------------------------
Reporter: mikeschinkel | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 3.9
Component: Posts, Post Types | Version: 3.1
Severity: normal | Resolution:
Keywords: has-patch dev-feedback 2nd-opinion | Focuses:
needs-docs |
-------------------------------------------------+-------------------------
Comment (by MikeSchinkel):
Replying to [comment:15 nacin]:
> Letting this function be "pluggable" could make post types even more
fragile than they are already
An alternate to adding this single hook would be to provide several
smaller hooks; one for each of the concerns I mentioned above so as:
1. Short-circuit/disable selected post type registrations.
2. Default supports
3. Rewrite rules
4. Metabox callbacks
5. Taxonomy Registration
The first three are the ones I have found most need for.
BTW, I'd be interested in understand circumstances where allowing
modification of `$args` would make post types more fragile. In Sunrise,
we currently allow modification of `$args` via a hook in our wrapper
function that calls `register_post_type()`so that a generic plugin can be
used for many similar sites that need easy customization. If we are going
to run into trouble with that I'd like to be able to anticipate what type
of trouble.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/17447#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list