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:
Unless you are already logged into your website’s hosting control panel, do so now.
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.
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.
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.
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:
Change the 3 above to whatever amount you want to limit your Post Revisions to.
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.