Horje

Tips (Total 1)


# Tips-1) How to Set a maximum number of post revisions to avoid DB bloat

The default is infinite, and this will set it to only remember the last five edits:

Set a maximum number of post revisions to avoid DB bloat

Just copy and past following codes to yourdomain.com/wp-config.php

Example: PHP
/**
 * Set the post revisions unless the constant was set in wp-config.php
 */
if (!defined('WP_POST_REVISIONS')) define('WP_POST_REVISIONS', 5);