How To Disable & Delete Post Revisions in Wordpress

Blogging, Tutorials Add comments


Wordpress automatically saves post revisions of every post you create, everytime you edit it. This feature may be useful if you are trying to collaborate with other authors on the same post or if you want to automatically take backups of any changes you make. But most of us don’t need it; it just adds redundant rows in the wp_posts table and adds unnecessary bulk to your database.

To disable post revisions-

Edit the wp-config.php file in your blog directory and add the following line at the end

define(’WP_POST_REVISIONS’, false);

To delete existing post revisions-

Download the WP-Optimize plugin and install/enable it on your blog.

Go to Dashboard > WP-Optimize and tick Remove all Post revisions. Click on the Process button and all the post revisions will automatically be deleted.

Share:
  • Digg
  • del.icio.us
  • Google
  • StumbleUpon
  • Technorati
  • Reddit

Related Posts

Leave a Reply

All rights reserved by Pathik Shah.
Entries RSS Comments RSS Log in