The default is infinite, and this will set it to only remember the last five edits: |
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);
How to Set a maximum number of post revisions to avoid DB bloat | Wordpress Post Shortcode |
Set a maximum number of post revisions to avoid DB bloat | Wordpress Post Shortcode |
Read Full: | Wordpress Post Shortcode |
Category: | Web Tutorial |
Sub Category: | Wordpress Post Shortcode |
Uploaded: | 1 year ago |
Uploaded by: | Admin |
Views: | 37 |
Tested on: | WordPress 3.0.1 |