How to Limit or Disable WordPress Post Revisions?

Mar 17, 2013

Want to disable post revisions in a WordPress blog? If you are a WordPress user, you might have noticed post revisions. By default WordPress saves copies of each edit you make to a post or page. This features is helpful, specially when you make some mistakes during post edits. With post revisions enabled, you can quickly go back to the earlier version of the post/page. But the problem with post revision is that, WordPress database keeps growing with each edit. Is it possible to disable or turn off post revisions feature? Yes, you can safely disable or limit the post revisions feature of WordPress. Read on to find a quick step-by-step tutorial for disabling post revisions.

Disable Post Revisions

How to Disable WordPress Post Revisions?

  1. Login to your hosting account.
  2. Locate your WordPress installation folder.
  3. Open wp-config.php in edit mode.
  4. Add the following right before the line that says /* That’s all, stop editing! Happy blogging. */ define('WP_POST_REVISIONS', false );
  5. Save the document.

The above steps will permanently disable or stop post revisions in your WordPress blog.

How to limit Post Revisions in WordPress?

If you don’t want to disable Post Revisions but still concerned about growing database size, you may limit revisions per page or post. Follow the steps below to specify maximum number of allowed revisions per page or post.

  1. Login to your hosting account.
  2. Access file manager and locate your WordPress installation.
  3. Open wp-config.php in editor.
  4. Add the following line just before the line that says /* That’s all, stop editing! Happy blogging. */ define('WP_POST_REVISIONS', 3 );
  5. Save wp-config.php

The above steps will limit post revisions to 3 per post or page on your WordPress blog. You can change the value with any positive integer number.

Leave a Reply

Note: The sign * means required field. Comments are subject to moderation.