Disable WordPress Post revision Without Plugin

by Themepremium on November 12, 2009

WooThemes - Made by Designers

So previously we talked about WordPress post revision feature and revision controlwordpress_logo WordPress plugin to disable post revision, but instead of using any plugin we can simple disable this feature by adding a small line of code in your wp-config file.

This will make sure that your blog will not save the instance of your previously edited post and thus it will not increase the size of your database.

To use this small code, you should know how to access your wordpress directory using FTP.

Now go to root of your wordpress installation and open wp-config.php file, and add this single line of code

define('WP_POST_REVISIONS', false);

This will ensure that none of your post will be revised again. I find it much better than using a plugin, since my wordpress will not be over loaded with an extra plugin.

p.s : Do take a backup of your wp-config.php file, before editing your wordpress file.

Related posts:

  1. Revision Control WordPress plugin : Disable or Limit Post revision in WordPress
  2. WordPress Post-Revision feature- Do you really need it?
  3. Delete all Post revision from WordPress Database at One Go
  4. Optimize WordPress Database With Wp-Optimize WordPress Plugin
  5. WordPress memory Size Allocate problem in http.php line 1327 [Solved]

Wpfreelancer

{ 3 comments… read them below or add one }

Pubudu Kodikara November 15, 2009 at 6:51 pm

This is very useful! Its better to do it by hand without filling your system with plug-ins….

Reply

Rajesh Kanuri November 21, 2009 at 12:55 pm

Looking for similar hack.. Thanks for the info

Reply

Ashfame February 19, 2010 at 1:44 am

Its somewhat messy. We do have a ticket regarding it on Trac. Hope to be fixed soon.

Reply

Leave a Comment

Previous post:

Next post:

.