How To Disable Post Revisions In WordPress
How To Disable Post Revisions in WordPress
To disable post revisions, you need to open your wp-config.php file and add the following lines.How To Delete Old Post Revisions in WordPress
If you want to clear out past revisions, you can do this in a couple of ways. The first and most obvious way is to use a plugin such as WP-Optimize or WP Sweep. Both of which are free and easy to use to clear out all your revisions. However, if you would like to do this without a plugin, you can open up your database in PHPMyAdmin and run the following SQL query. DELETE FROM wp_posts WHERE post_type = "revision";Closing Thoughts
There are many times where post revisions might be useful for your website. I am not suggesting you disable them for every website, however there are many situations where you might not want post revisions, like a slow host. If you do not want to disable post revisions, which is totally understandable, I at least would clear out older post revisions. They can clutter your database and impact the overall performance of your site.Scott Hartley
Founder & CEO, Sert Media
Founder and CEO of Sert Media, a Nashville-based digital marketing agency. Scott has spent over 15 years helping businesses grow through SEO, web performance optimization, and strategic digital marketing. His deep expertise in WordPress development, site speed, and technical SEO has guided hundreds of brands toward measurable results. When he's not auditing Core Web Vitals or refining campaign strategies, he's writing about the tools, techniques, and trends shaping the modern web.
Related Articles
How to Add Security Headers to WordPress Using Cloudflare Transform Rules
If you've ever run your WordPress site through securityheaders.com and gotten a D or F…
Use This Cloudflare Rule To Reduce Plugin Hack Attempts
Cloudflare Firewall Rules give you a lot of flexibility in further protecting your website. Here…
Set Up Cloudflare's Automatic Platform Optimization Feature
Automatic Platform Optimization (APO) is a new feature from Cloudflare that allows you to cache…