In my last post we discussed on how to delete post revision in WordPress. This is only a temporary solution which deletes all post revisions on your previous posts.
If you’re not a multi author blog and would like to disable post revision feature in WordPress for good, here’s a small tutorial for you
How to Disable Post Revision in WordPress
Step 1 -> Locate you wp-config.php file which is in the root of WordPress installation. It can be found through the file manager of cpanel of your web hosting
Step 2 -> Locate the file wp-config.php and can click on edit
Step 3 -> Now add following line in wp-config.php file immediately after <?php tag as shown below
Here is the code for you
Step 4 -> Now save wp-config.php file in your WordPress root directory and you should be done.
Note - If you’re interested in limiting the post revision, you should use the below code. This limits the post revision to 3, you can use any number of your choice.
The above two codes will ensure that either your future post revisions feature is disabled or limited. Do let us know incase you face any problems and we shall help you out