How to disable post revisions in WordPress blogs

Revisioning is a WordPress feature that enable us to access previous version or version history of a particular post or a page. With this feature you can compare post changes with ease. While composing a post, WordPress will save the post at every 60 seconds and save them as revisions. all these revisions will save in the database and keep even after you publish the post or update.

But at the end of the day this will result in increasing the entries in database (under each post) and will slow down your database performance. To get rid of this, you can either limit the maximum post revision to a lower number or disable post revisions in WordPress completely.

Disable post revisions in wordpress

Navigate to to your website’s root directory called “public_html” and find the file “wp-config.php” and edit, Add below 3 lines before “ABSPATH” starts ( this is important)

//disable WP Post Revisions
define(‘AUTOSAVE_INTERVAL’, 300); // seconds
define(‘WP_POST_REVISIONS’, false);

How to disable post revisions wordpress


Now save the wp-config.php file , you are done. WordPress will never save revisions hereafter. If you want to limit the maximum number of revisions to 3, edit like below

define(‘WP_POST_REVISIONS’, 3);

For more informations visit WordPress support documentation



  1. Vinod 18/03/2019
  2. kaine 18/03/2019
  3. Roland 21/03/2019
  4. Jio 26/03/2019

Leave a Reply

Are you a human being ? *