Change The Amount Of WordPress Post Revisions Stored
WordPress has a autosave feature which will automatically save a revision of your post as you are typing. But the problem with this comes when you have a WordPress blog with hundreds of posts. Each one of these posts will have a number of automatically saved post revisions. This can quickly add thousands of a posts to your wordpress database.
The following WordPress snippet will allow you to pick how many post revisions each post has or if you want to turn off the auto save feature.
To change the post revision to save 3 revisions add the following to your wp-config.php file.
To turn off the auto save feature add the following to your wp-config.php file.
- Access 100s of premium tutorials and downloadable content
- Members content consists of premium WordPress plugins, CSS packages, jQuery packages, tutorial demo files and templates for 100s of web development tutorials
- In-depth development tutorials
- Priority tutorial requests
- No ads