How to disable Post Revision Feature WordPress

Do you know the Post Revisions feature in WordPress saves copies of each edit made to a WordPress posts or pages. It allows you to revert back to a last copy of that post/page. This can be very helpful but sometimes it can just clutter your Post/Page edit screen. In this tutorial we will show you how to disable the Post Revision feature in WordPress or alternatively, to specify the number of post revisions.

If you want disable the Post Revision feature in your WordPress website then follow these below steps to disable the Post Revision Feature:
Step 1 : You should logged into your website’s hosting control panel, if you are not logged in then do so now.
Step 2: After login your hosting panel open your host server’s File Manager Application. If you do not have access to a file manager, you can make these changes via a FTP Program, such as FileZilla etc.
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 like ( 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 right click on the wp-config.php file and open into code-edit. This is better for you if make a backup copy of this wp-config.php before editing it.
Step 5 : After open wp-config.php file 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 also set max number of time post revisions, you can enter this code below to specify a maximum number of revisions:
For example if you want to set maximum number of post revisions 2 then set like below example or code of line:
define(‘WP_POST_REVISIONS’, 2);
Change the 2 above to whatever amount you want to limit your Post Revisions to.
Step 6 : Now you can 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.

About Author

My name is Mukesh Jakhar and I am a Web Application Developer and Software Developer, currently living in Jaipur, India. I have a Master of Computer Application in Computer Science from JNU Jaipur University. I loves to write on technology and programming topics. Apart from this, I love to travel and enjoy the beauty of nature.

Sign up for weekly update

Milkshake is almost ready. If you're interested in testing it out, then sign up below to get exclusive access.