In fact, you really don’t need 10 post revision, and not even 5. Usually 2 or 3 post revisions are good.
So, how do you limit post revisions in WordPress?
How to Limit Post Revisions In WordPress
Method on how to limit post revisions in WordPress for the code savvy
If you are familiar with, or not scare of editing your wp-config.php file, you can put before the code for your wp-settings.php reference toward the bottom of the file the following code snippet.
/** Define number of Post Revisions allowed in MySQL. */ define ('WP_POST_REVISIONS', 2);
For this short tutorial, I have limited the revisions to 2, but you can just change the number to what you desire.
I have seen a lot of tutorials that just have one line, but for documentation purposes, I added the line before it. This is great for those who have multiple developers who work on their website, or if you originally developed the site and left it into the site owner’s hands to figure out. It’s just common courtesy.
You can also disable post revisions:
/** Define number of Post Revisions allowed in MySQL. */ define('WP_POST_REVISIONS', false );
As you can see, the different between the previous code snippet and this one is that you have defined it as false instead of a number.
Method on how to limit post revisions in WordPress for the not so code savvy
If you really donn’t want to deal with code and just want to install a plugin, Revision Control should be a good addition to your website.
I do want to note that some people have said that when upgrading WordPress and using Revision Control, you will need to reset your plugin’s limit after the upgrade so it will work properly again.
Please do note that these methods will not remove whatever post revisions you currently have. You will have to put in another method.
Have you ever had any problem with your database getting bloated with post revisions? What method do you using to limit post revisions in wordpress?