Disable or Limit Post Revisions in WordPress

The following snippets should be added at the bottom of wp-config.php file

1. If you want to disable all revisions, set the WP_POST_REVISIONS constant to false:

define('WP_POST_REVISIONS', false);

2. You can also limit the number of revisions to keep by setting the WP_POST_REVISIONS constant to a number. To save 5 revisions, use:

define('WP_POST_REVISIONS', 5);