How to Disable or Limit WordPress Post Revisions
Most WordPress users pay no attention to Post Revisions. WordPress didn’t provide a direct option to enable and disable it in its interface.
If you post daily in your WordPress site in just a year, you will have thousands of post revisions. The most annoy thing is that the post revisions are stored on your WordPress database. It may reduce your site loading speed, and keep lots of redundant files.
With the used of most WordPress optimizing plugins, you can delete all existing post revisions on your database. But how long will you continue to do this – knowing fully well that such WordPress optimization plugins may be vulnerable at times.
On this post, we will learn how to delete or limit post revisions.
How To Disable Post Revisions
WordPress post revisions can be disabled by adding the below line of code in your “wp-config.php” file;
How To Limit Post Revisions Count
You can also limit the number of post revisions count to any amount of your choice by adding the line of code in your “wp-config.php” file
In the case above, I used 3 in the code above. It means the number of post revision on my WordPress machine cannot exceed 3 per post. But you can change the value to your needs.
Note: if you add the two sets of the line in your “wp-config” file – the post revisions disable function will supersede the post limiting function. Therefore you are expected to choose just either of the code.
I hope this article was helpful to you. Please use the comment box below to communicate with me. I will always be online to assist you.