WP Decoder

Limit or Disable Post Revisions

Although I find the Revisions option helpful in the post editor, I certainly don’t need the last 50 versions of any given post. That can quickly bloat any database. Backing up your website can be tough with a huge database. Try using these snippets to either disable post revisions or limit them to five. (Note, change the number 5 to whatever number you want.) Choose one or the other and then add it to your wp-config.php file in the root directory.

// disable post revisions
define('WP_POST_REVISIONS', false);
 
// limit five post revisions
define('WP_POST_REVISIONS', 5);