[wp-hackers] Overriding Existing Post Types

Mike Schinkel mikeschinkel at newclarity.net
Mon Jun 21 22:25:58 UTC 2010

On Jun 21, 2010, at 5:18 PM, scribu wrote:
> On Mon, Jun 21, 2010 at 11:58 PM, Lox <lox.dev at knc.nc> wrote:
>> 2010/6/22 Thomas Belknap <dragonfly at dragonflyeye.net>:
>>> I'm sure I've just missed the conversation, but is it possible with the
>> new
>>> Custom Post Type API to override existing post types? Or would there be a
>>> better way to strip out a lot of the extra stuff (meta, revisions, ect)
>> from
>>> the UI for users?
> You can just re-register the 'post' post type, overwriting the arguments
> found in create_initial_post_types() in wp-includes/post.php

Yep, that should do it.  

But be prepared to test some edge cases where it doesn't behave as you'd expect, and maybe even find bugs because I doubt "post" nor "page" were tested with anything other than that standard values.  

If you do find issues, of course, please report on trac...


More information about the wp-hackers mailing list