WordPress: Disable Post Revisions / Turn Off Revisions

In WordPress, you can disable post revisions by modifying the WP_POST_REVISIONS setting in the wp-config.php file. This setting determines the number of revisions that WordPress should store for each post or page.

To completely disable post revisions, set the value of WP_POST_REVISIONS to false in your wp-config.php file:

define('WP_POST_REVISIONS', false);

If you want to limit the number of revisions stored for each post or page, you can set WP_POST_REVISIONS to the desired number of revisions:

define('WP_POST_REVISIONS', 3);

In this example, WordPress will only store the most recent 3 revisions for each post or page.

Note that disabling post revisions will not delete existing revisions, but it will prevent new revisions from being stored. To remove existing revisions, you can use a plugin like WP-Optimize, or run a database optimization query using tools like phpMyAdmin.

Leave a Comment