How to Disable WordPress post revisions

Added By: Prem Tiwari | Last Updated: | In: WordPress, WordPress Snippets


Hello friends, Thank you for giving time to FreeWebMentor community. I am Prem Tiwari, and today I am going to share a very useful WordPress code snippets. Please pay your attention in this tutorial as I going to share how to disable WordPress post revisions.

This tutorial will help you if you are a WordPress website owner or WordPress developer.

WordPress Custom Post Types

How to Disable WordPress post revisions

Copy the below code and paste it at the end of the wp-config.php file and save it. It will disable the post revisions in your WordPress website.

How to Limit WordPress post revisions

Copy the below code and paste it at the end of the wp-config.php file and save it. It will Limit the revisions of WordPress post. 5 is the number of post revisions.


About: Prem Tiwari

Prem Tiwari is the founder of FreeWebMentor.com and also a professional developer who has vast experience in PHP and open source technologies. Apart from this, he is a blogger by hobby and also he has been a regular speaker of WordPress sessions in various IT Companies.


, , , , , ,

Share this post!