type="text/css" />

How to Disable or Turn Off WordPress Post Revisions… Get rid of useless revisions & clear the database!


Post Revisions was introduced from WordPress 2.6. Autosaves are enabled for all posts and pages but they do not overwrite published content. Autosaves are stored as a special type of revision; they do not overwrite the actual post. Each post may have several number of revisions.

As a result, over the times WordPress table wp_posts may have hundreds of useless revisions of different posts. This feature clutters up the database with redundant contents. In this post, I will show you how to disable or turn off WordPress Post Revisions.

How to Turn off WordPress Post Revisions

  • Use an FTP application to your server
  • Download the wp-config.php file to your desktop
  • Using a text editor and open the wp-config.php file
  • Copy and Paste the following code anywhere between <?php and ?>
1
define
(
'WP_POST_REVISIONS'
, false
)
;
  • Save the file and upload (overwrite the old file) it to your server

That’s it. This process will stop creating Post Revisions. However, WordPress automatic saving option will work as usual.

By Jinnat Ul Hasan | On Sunday, July 4th, 2010 | Under How To's | 1 Comment ยป


DO YOU NEED OUR HELP?

Contact our experts, most of the time we assist our readers free of charge.

Those who found this page were searching for:

  • wordpress get rid of post revisions
  • How to Disable or Turn Off WordPress Post insert
  • revisions wordpress 3.2
  • wordpress 3.2 disable autosave
  • clear wordpress autosave
  • prevent wordpress storing post revisions
  • wordpress 3.2 post revisions
  • revision in wordpress 3.2
  • turn off subscription wordpress
  • wordpress 3.2 stop revision post

Previous post:

Next post: