WordPress

Change The Amount Of WordPress Post Revisions Stored

Wordpress

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.

define('WP_POST_REVISIONS', 3);

To turn off the auto save feature add the following to your wp-config.php file.

define('WP_POST_REVISIONS', false);
Back to top ^

Join Paulund

  • Get access to 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
  • Priority email development support
  • No ads

Here at Paulund you'll find Web Development tutorials and snippets focusing mainly on PHP, WordPress and CSS. Members will get access to premium tutorials that go into more detail about development with these languages. You will also get access to downloadable premium content based on the tutorial.

Join Paulund

Leave a Reply

Your email address will not be published. Required fields are marked *