[wp-hackers] Prevent revisions on custom post type

Ryan Bilesky rbilesky at gmail.com
Wed Dec 15 06:31:49 UTC 2010


Oh duh, suppose I should RTM first.

On Dec 14, 2010 9:11 PM, "Bill Dennen" <dennen at gmail.com> wrote:
> Hi,
>
> When you define the post type...
>
> http://codex.wordpress.org/Function_Reference/register_post_type
>
> look at the 'supports' argument. "Revisions" is one of the values.
>
> $supports = array('title', 'editor', 'excerpt');
>
> register_post_type( 'my-type',
> array(
> ...
> 'supports' => $supports
> )
>
> -Bill
>
> On Wed, Dec 15, 2010 at 12:00 AM, Ryan Bilesky <rbilesky at gmail.com> wrote:
>> I am working on a plugin that will create a custom post type, how can I
>> disable revisions just for my custom post type?
>> _______________________________________________
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>>
> _______________________________________________
> 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