[wp-hackers] Prevent revisions on custom post type

Bill Dennen dennen at gmail.com
Wed Dec 15 05:11:35 UTC 2010


When you define the post type...


look at the 'supports' argument. "Revisions" is one of the values.

 $supports = array('title', 'editor', 'excerpt');

  register_post_type( 'my-type',
      'supports' => $supports


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

More information about the wp-hackers mailing list