[wp-hackers] Overriding Existing Post Types

Andrew Nacin wp at andrewnacin.com
Mon Jun 21 23:54:30 UTC 2010


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.


More information about the wp-hackers mailing list