Disable Post Revisions Or Limit Post Revisions In WordPress

Hello Friends, Today I am going to write one important thing for posts,Database as well as Database load due to post revisions. At the time of the writing any post in wordpress,By default Worpress auto saving post after some amount of time , It is called post revisions and it is very useful when browser crashes or any other problem occur. By this you can get your written post exactly same(If it auto saved your post at last moment of PC or browser crash) or up to last revision.But Post revision having also disadvantage like it increase loads on database, So if you want to disable post revisions in wordpress then follow below steps.

1. Open wp-config.php file in your blog root directory.

/* disable post-revisioning */
define(‘WP_POST_REVISIONS’, FALSE);


2. Just place that line above the “Happy blogging” comment.

3. Save that file.

4. If you want to limit number of revisions in wordpress then you have to write a line given below instead of line given above.

/* disable post-revisioning */
define(‘WP_POST_REVISIONS’, 3);

It will disable or limit post revisions.