Skip to content

How-to Guides

Technical References

VIP Platform /

Post revisions

The WordPress revisions system stores a record of each saved draft or published update. New VIP environments default to storing the last 500 revisions. The constant WP_POST_REVISIONS is defined in the vip-config.phpfile, where this number can be increased or decreased:

  • -1: store every revision
  • 0: do not store any revisions (except the one autosave per post)
  • (int) > 0: store that many revisions (+1 autosave) per post; old revisions are automatically deleted

If you have migrated a database to VIP that has more than 500 revisions per post, those revisions will be preserved; however, the next time one of these posts is edited, unless the above constant has been changed from the default, only the last 500 revisions will be saved.

Last updated: February 12, 2021