[wp-hackers] Overriding Existing Post Types
Thomas Belknap
dragonfly at dragonflyeye.net
Tue Jun 22 01:04:57 UTC 2010
... Don't re-register the post type. There's a proper way to do this that is
more forwards compatible:
add_post_type_support( 'page', 'excerpt' );
Andrew,
Can I use that function to override/remove features that are already in Post
and Page? Or only add features?
On Mon, Jun 21, 2010 at 7:54 PM, Andrew Nacin <wp at andrewnacin.com> wrote:
> On Mon, Jun 21, 2010 at 6:45 PM, Lox <lox.dev at knc.nc> wrote:
>
> > To add excerpt, this does the trick:
> >
> > register_post_type( 'page', ...
>
>
> Don't re-register the post type. There's a proper way to do this that is
> more forwards compatible:
>
> add_post_type_support( 'page', 'excerpt' );
>
> Just make sure you attach that to the init hook.
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
More information about the wp-hackers
mailing list