
Post revision are extremely useful when it comes to rolling back to an older post, but don’t you think they happen way to often? This can get quite silly as wordpress does not have any limit on post revision amounts. So, lets take a look on how to limit or even disable the post revisions.
1. To limit the page revisions, or even disable the revision open wp-config.php.
2. Add these links to the bottom of wp-config.php
define('WP_POST_REVISIONS', 5); // Maximum 5 revisions per post
define('WP_POST_REVISIONS', false); // Disable revisions
3. Save the file and replace it on the server.
Adding these lines of code will only allow 5 post revisions. This will keep your database a lot less clunky storing all of those endless page revisions. To disable the revisions simply change the word ‘false’ to ‘true’