The Post Revisions feature in WordPress saves copies of each edit made to a WordPress post or page. It allows you to revert back to a previous version of that post/page. Sometimes, this can be very helpful, and sometimes it can just clutter your Post/Page edit screen. This tutorial will show you how to disable the Post Revision feature in WordPress or alternatively, to specify the number of post revisions.
Follow these steps below to disable the Post Revision Feature:
Step 1:
Unless you are already logged into your website’s hosting control panel, do so now.
Step 2:
Open your host server’s File Manager Application. If you do not have easy access to a file manager, you can make these changes via a FTP Program, like FileZilla.
Step 3:
Open the folder where your WordPress installation is stored. It may be in the root folder if this is the main domain in your hosting account or the domain may have it’s own folder listed. The folder you are looking for will have contain these three folders: wp-admin, wp-content, and wp-includes.
Step 4:
From this folder, scroll down and open(code edit) the wp-config.php file. It is a good idea to make a backup copy of this wp-config.php before editing it.
Step 5:
Once inside the wp-config.php file, add this line of code to completely disable the Post Revisions Feature:
define('WP_POST_REVISIONS', false );
Alternatively, you can enter this code below to specify a maximum number of revisions:
define('WP_POST_REVISIONS', 3);
Change the 3 above to whatever amount you want to limit your Post Revisions to.
Step 6:
Save the changes to your wp-config.php file
And there you have it. WordPress will now either disable the Post Revisions feature altogether or will limit the post revisions if you used that code instead.
Also, click here if you would like to delete unused Post Revisions from your WordPress Database.
Ratan Mia says
I personally hate when revisions are disabled. I write for one or two blogs that have completely disabled them and it is very frustrating. Firstly, because from time to time I will lose a connection and lose all my work. And secondly, because I am unable to refer back to previous drafts. I believe a few drafts are best and you can then periodically delete old drafts that are not necessary.