Turning off Post Revisions in WordPress


This is probably old news in the WordPress world since 2.6 and subsequent versions have been released, but given I've decided to stick around using it for a bit longer I thought it was worth getting right when I installed it fresh here since the [forced] move.

One feature I really don't use is Post Revisions. While I can see the benefit of using it on a Wiki, on a blog written by just one guy it doesn't really make much sense; plus it adds junk records to the database which makes backing up said blog a more time consuming process than it needs to be.

Courtesy of Lester Chan, if you want to turn Post Revisions off, just add the following line to your wp-config.php file.

define('WP_POST_REVISIONS', false);

He also has instructions on how to delete existing entries made my Post Revisions if you've had it turned on for a while.

Author bio and support


Ruben Schade is a technical writer and infrastructure architect in Sydney, Australia who refers to himself in the third person. Hi!

The site is powered by Hugo, FreeBSD, and OpenZFS on OrionVM, everyone’s favourite bespoke cloud infrastructure provider.

If you found this post helpful or entertaining, you can shout me a coffee or send a comment. Thanks ☺️.