While writing post in your WordPress dashboard you might have seen revisions those are nothing but shows how many times you have edited the post and at which time and author. Turning it off saves lots of Database space.
Turning post revisions off is quit a too much simpler task. Just open your wp-config.php and add below peice of code :
and now save the file. Now Revisions have been turned off.
if it was active for some time then you can clear those by runing a simple MySQL query in PHPMyAdmin :
DELETE FROM wp_posts WHERE post_type = "revision";
If you use WP-DBManager then also you can run this query through it.
How to Limit Post Revisions
Now it is possible to limit post revision and save a specific amount of revisions instead of completely turning it off. To do so paste the below code in
In the above code instead of
3 you can specify any number of revisions you want to save.
Update – 11/11/2014 – Added How to limit post revisions.