How to disable the Post Revision Feature in WordPress

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.

   Related Sponsored Links

Disclaimer: The information contained in this website is for general information purposes only and in no event will this site or its owners be liable for any losses or damages associated with your use of our site or content. Click here to see our full Disclaimer.

Leave a Comment