How to Disable WordPress Post Revisions

WordPres revisions

Are you searching for a way to remove WordPress post revision? If yes, then you are on the right page. In this article, we will discuss WordPress post revision and the way to disable it.

What is WordPress Revision?

WordPress revisions are an awesome thing of WordPress. It stores a record of each saved draft or published update of a post. This system allows you to see what changes were made in each revision, What was added, what remained unchanged, and what was removed. Lines added or removed will be highlighted. The revision page also lets you compare two revisions. One important thing is that autosave will have only one revision for a single user. Read more about WordPress revision here.

Best Managed WordPress Hosting

WPEngine is the best and most secure managed hosting provider

So, WordPress revision is an important thing. It helps in recovering the previous version of the article if you mistakenly edited and ruined the blog post. You can easily revert back.

Also read: WordPress.com vs WordPress.org

Does WordPress Revision impact load time?

It is a common myth that having multiple post revisions slows down your website. Actually, WordPress is smart enough to optimize your posts. So if you have few posts, then you will not see any impact. But it consumes your space. And if the number of posts is too large, then it will also have little impact on query time. If your blog has hundreds of posts, it means you have a few hundred revisions which are almost copies of your existing post. So, you can delete revisions to decrease the size of the database.

Also see: How to speed up WordPress

How to delete post revisions?

In my previous post about WordPress database optimization, I discussed a nice WordPress plugin WP-DB Manager. This plugin also gives you an option to delete WordPress revisions. If you are using this plugin, you can select ‘Delete revision’ while optimizing the database and this plugin will do that for you.

How to disable post revisions?

The previous section covered how to delete post revision if you want. You can use that plugin anytime to check if there are few post revision and disable it. If you also want to completely disable WordPress revision feature, you can also do this by adding a single line of code on wp-config.php.

define('WP_POST_REVISIONS', false );

This line in wp-config.php will tell WordPress not to store post revisions.

Final Words

Now you know how to delete post revisions in WordPress. I still recommend you leave this as it is and do not disable WordPress revision. It can be a life savior when you have mistakenly done something unexpected in a post and have nothing to undo. In this kind of situation, you can easily use the revision feature and restore the post from the previous revision. So, you should not disable the revision. To keep the database size small, you can manually remove old revisions. For this, there are a few database optimizer plugins for WordPress. You can try these plugins to optimize your WordPress blog’s database and remove WordPress revisions.

What do you think about post-revision? Share your views with us in the comments.

Tags:

Deepanker Verma is experienced WordPress developer who can code WordPress Themes and Plugins. Here, he will be writing about WordPress guides.


Similar Articles

0 Comments

Leave a comment

Comment policy: We love comments and appreciate the time that readers spend to share ideas and give feedback. However, all comments are manually moderated and those deemed to be spam or solely promotional will be deleted.

© 2022 The WP Guides Developed By Deepanker