Skip to content

How To Disable/Limit WordPress Post Revisions

WordPress’ post revision feature was introduced to us in the 2.6 version of WordPress. A revision of your post is automatically stored in your database, whenever you save or draft a post or a page in your post editor. If you don’t like this WordPress post revision feature then you can limit or disable this feature.

Limit WordPress Post Revisions

You can limit the numbers of post revisions with this snippet. Just add following snippet to your wp-config.php file:

define('WP_POST_REVISIONS', 3);

Replace 3 with maximum number of Post revisions per post.

Disable WordPress Post Revisions

You can also disable this feature by adding following snippet to your wp-config.php file:

define('WP_POST_REVISIONS', false );

Leave a Reply

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