Disable or Limit Number of Revisions in WordPress

For some users who made changes to their posts / pages all the time, revision can that an amount of space on your database. If you don’t want to use revision here’s a handy code to do it, add this code to wp-config.php file.

define( 'WP_POST_REVISIONS', false );

If you still want to enable revision but want to limit the number of revision for each post or page you can simply do it with this code:

define( 'WP_POST_REVISIONS', 3 ); // 3 is the number of revision

 1,029 total views,  1 views today

Leave a Comment

Your email address will not be published. Required fields are marked *