[wp-hackers] Overriding Existing Post Types

Lox lox.dev at knc.nc
Tue Jun 22 00:25:04 UTC 2010


Really nice. Thks

Le 22 juin 2010 10:55, "Andrew Nacin" <wp at andrewnacin.com> a écrit :
> 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