WordPress - Disable post revisions

I always forget to disable post revisions on new WordPress installation so I need to write it down.

Just add one line to wp-config.php file:

define('WP_POST_REVISIONS', 0);

You can also increase auto save time interval so empty drafts wouldn't be saved.

define('AUTOSAVE_INTERVAL', 9000);
Milosz Galazka's Picture

About Milosz Galazka

Milosz is a system administrator working for a successful Polish company and a long time supporter of Free Software Foundation and Debian operating system.

Gdansk, Poland https://sleeplessbeastie.eu