• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WordPress Tips, Code Snippets, and How To Tutorials

  • Home
  • Blog
  • Tips
  • Snippets
  • Tutorials
  • Contact

How to disable the Post Revision Feature in WordPress

July 18, 2015 by admin 1 Comment

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.

If you like this then you should look up more of our WordPress Tips Code Snippets and Tutorials.

Disclosure: There are affiliate links on posts and throughout the website and if you use the links to make a purchase we may earn a commission from it. We link to these companies and their products because of the quality of the companies and not because of the commission we may receive from it.

Disclaimer: The information contained in this website is for general information purposes only and in no event will this website or its owners be liable for any losses or damages associated with your use of our website or content. We recommend that you make a backup of your website before you make updates to it. Click here to see our full Disclaimer.

Filed Under: WordPress Tutorials Tagged With: Post Revisions, wp-config.php

Reader Interactions

Comments

  1. Ratan Mia says

    November 29, 2017 at 8:11 pm

    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.

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Hey, We Deliver... Anywhere!

Enter Email Address below to receive our snacks via email:

Join Over 1200 Readers!

Jump To A Random WordPress Tip

Copyright © 2019 • wpsnacks.com