Looking to Build/Redesign a Website or Blog ?

To speak to Rakshit, call +91 968 704 2303

How to Disable or Limit Post Revision in WordPress

Hello Friends,

In previous post i gave you MYSQL Query to delete Revision Posts in WordPress. Suppose you don’t want to save Revision Posts than you may disable it by writing a single line of code in wp-config.php file. Also you can limit the Post Revisions in WordPress. So here is how to disable or limit Post Revisions in WordPress. Add below line of code in wp-config.php file which is located in root folder of your wordpress. This will completely disable Post Revision.

// For Disable Post Revision WordPress
define(‘WP_POST_REVISIONS’, ‘false’);
// For Limit Post Revision WordPress
define(‘WP_POST_REVISIONS’, 5);

Let me know if you find any problem.


No Comments Yet.

Leave a Reply

Your email address will not be published.