How to Disable Revision in WordPress

Revision in WordPress can occupy unnecessary spaces that make the database heavy. You don’t need those versions in most cases, so why keep them?

If you don’t want to keep those revised versions(which is the best practice), deleting them is the best option. Moreover, to prevent creating revisions, you can disable them permanently. In case you want to clear the unnecessary space it’s occupying but also want to keep revisions, you can limit the number of revisions per post. 

In this article, we’ve demonstrated 7 methods of disabling, enabling, limiting, and deleting revision in WordPress. We’ll also show how you can do these with plugin and without plugin. Let’s see how it looks, and get started! Before Removing Revisions

post with revision in WordPress

After Removing Revisions

post without revision in WordPress

How to Disable Revision in WordPress Using Plugin

Step 1: Go to your WordPress Dashboard, hover on Plugins, then click on Add New to add a new plugin.

Step 2: From the plugin directory, search for Disable Post Revision. Then install and activate it.

Install and activate disable post revision in WordPress

Step 3: After that, in the Dashboard, hover on Settings and click on Writing.

Step 4: A new page will appear where you can find an option called Disable Post Revision. Select Post on that section, and click Save Changes to save that setting. After saving that, there will be no revised version will be saved on your site.

How to Disable Revision in WordPress Without Plugin

Step 1: To disable revisions manually, you’ll need to put some code in a specific file of your website. First, go to the files of your site, and from the root folder, find a file named wp-config.php. Then open it with your text editor or IDE.

See also  How to Enable Infinite Scrolling on Shop Page: Flatsome Theme

Step 2: Now, you need to put a line of code there, and save the file. After that, the revisions will be automatically disabled on your website. You can learn how to create a custom shortcode in WordPress if you want.

code for disabling post revision in WordPress

How to Enable Revision in WordPress

Step 1: To enable revisions, you need to go to your site files first. Then find the file named wp-config.php. You need to edit this file to enable WordPress revisions. So, open the using any IDE or text editor.

Step 2: After that, put this line of code in the file. If you find similar code already exists, then just change the “false” to “true”. Then save the file. Now, WordPress revision is enabled on your site. 

code for enabling post revision in WordPress

How to Delete or Remove Revision in WordPress Using Plugin

Step 1: Go to the Dashboard, then hover on plugins and click Add New to add a new plugin.

Step 2: Search for WP-Optimize, install, and activate it.

Step 3: After that, you’ll be redirected to the plugin list. If not, click on Plugins to go to the installed plugin list. Find the WP-Optimize and click Optimize.

Step 4: A new page will appear. You’ll find many options there. To delete revisions, click on the Run Optimization of “Clear all post revisions”.

After clicking that, all of your revisions will be deleted.

See also  How to Add or Change Background Image in WordPress

How to Delete or Remove Revision in WordPress Without Plugin

Step 1: Go to phpMyAdmin

Step 2: Then go to the SQL tab

Step 3: Run a SQL query by entering the following code

It will delete all posts that contain the post_type tag revision.

How to Limit Post Revision in WordPress Using Plugin

Step 1: Go to the Dashboard, and click on Add New to add a new plugin.

Step 2: Search for WP Revision Control. Then install and activate it.

Step 3: Now, go to the Dashboard again, hover on Settings, then click Writing.

Step 4: A new window will appear. Scroll down and you’ll find the WP Revision Control section. Fill the boxes according to your need, then click Save Changes to make this effective.

How to Limit Post Revision in WordPress Without a Plugin

Step 1: To limit WordPress post revision without a plugin, go to the root folder of your website, then find the file wp-config.php. Now, you need to edit this file in order to limit WordPress post revisions.

Step 2: After opening that file, put this line of code there. We’ve written the number 3 for demonstration purposes. You need to write the number of the revised version you want. 

code for limiting post revision in WordPress

When You Should Disable/ Delete Revision in WordPress

For Starters: If you’re starting your website, we recommend limiting your post revisions to 20. As a beginner, you’ll make frequent mistakes; that’s why having limited post-revisions will certainly help you. After creating a certain amount of posts, you’ll be confident about your posts, and then you can disable revisions.

See also  9 Best WordPress Theme Marketplace

Websites with 100+ Posts: In that case, you’ve already familiar with revision, and it’s the right time to delete all of your revisions. Also, disable the revision versions for upcoming posts. Before deleting previous revisions, it’s wise to go through the old posts to confirm that they are unnecessary.

Websites with 500+ Posts: Deleting 500+ posts’ revisions is a very sensitive issue. There can be lots of sensitive data. In such a case, we recommend you disable revisions first. After that, check each content manually. Though it could be time-consuming, it’ll help you to delete revisions securely. After checking all of that, delete all those revisions.

IMPORTANT: If multiple persons are working on the same site, inform everyone that you’ve disabled the revisions. You can also use the user-management plugin to control user access to your website.


We recommend you follow the “with plugin” methods if you’re uncomfortable with technical stuff. Otherwise, we recommend following “without plugin” ways. We hope you’ve successfully disabled, deleted, or limited post revisions. You can also create custom post type, and control that’s revisions. If you’re facing any issues while following this, feel free to contact us. We would love to solve your issue. If you find any change in the functionalities, let us know so we can update our article as soon as possible.


Subscribe To Our Newsletter!
Hi, I’m Mohamed. I share delicious recipes that I have cooked and loved. I’ve been food blogging for over 10 years and have a Diploma in Nutrition. You will find many healthy recipes as well as my favourite comfort food on the blog because I believe in a balanced diet.

Related Posts

Fintech’s biggest hits and misses of 2023

As 2023 comes to a close, we’re here to look back at the biggest fintech stories of the year. Silicon Valley Bank’s implosion felt like a fintech…

It’s critical to regulate AI within the multi-trillion-dollar API economy

Alex Akimov Contributor With two decades of tech leadership experience, Alex Akimov, former head of API at Adyen, now revolutionizes embedded finance at Monite by building best-in-class…

EU’s provisional deal on gig worker rights fails to get enough backing from Member States

Not so fast on that Christmas present for precarious gig workers in the EU: A political deal announced mid month, which aims to bolster platform workers rights…

Arduino exploring India manufacturing to limit counterfeit sales

Arduino is considering manufacturing in India. The startup, best known for its open source microcontroller boards, hopes to restrict the rise of counterfeit boards and cater to…

Top robotics names discuss humanoids, generative AI and more

Last month, I took an extended break. In a bid to keep my robotics newsletter Actuator (subscribe here) up and running, however, I reached out to some…

Pornhub owner pays US government $1.8M to resolve sex trafficking probe

Pornhub’s parent company Aylo Holdings will pay $1.8 million to the U.S. government to resolve a charge of profiting off of sex trafficking. The company, formerly known…