Disable WordPress Post revision Without Plugin

So previously we talked about WordPress post revision feature and revision controlwordpress logo thumb Disable Wordpress Post revision Without Plugin 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.

share on twitter

Comments

  1. Pubudu Kodikara says:

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

  2. Rajesh Kanuri says:

    Looking for similar hack.. Thanks for the info

  3. Ashfame says:

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

Leave a Reply

© 2009-2011 ThemePremium · All Rights Reserved
A threeroutes media Publication