Limit the number of post revisions

WordPress has a great revisioning system that auto-saves your post as you’re working with it. It also allows you to save different drafts and go back to an older one if you want to. Although this is great, the number of revisions often gets carried away, which takes up some database space.

You can easily limit the number of revisions allowed by adding this to wp-config.php:

 

 

define('WP_POST_REVISIONS', 5);

Be Sociable, Share!

Leave a comment