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 Linux Foundation Certified Engineer working for a successful Polish company as a system administrator and a long time supporter of Free Software Foundation and Debian operating system.