I know wordpress people believe making this an option is bad, but I really really wish they would. Make an "advanced" settings section that you have to turn on with your profile if need be. Whatever it is – this should be in the UI. In any case, I always have to do this, and I always forget the exact syntax. I think many places published it – I've probably seen it at least a dozen times. Just now when I was searching for it I found it here. But because I need to have the code handy here's the beef:
(add this to the wordpress config file after the "DB COLLATE" line.
define ('WP_POST_REVISIONS', 0);
define('AUTOSAVE_INTERVAL', 600);
This sql query will remove the revisions from the database:
DELETE FROM wp_posts WHERE post_type='revision';
Go to the abeontech link for more details.
Related posts:
- Adding a block of HTML to a WordPress post One problem with the WYSIWYG editor in WordPress is that...
- Search from WordPress Admin (Post Listing) Redirecting to Home Page This is possibly the most bizarre thing I've ever seen....
- Anchor Links in WordPress Posts – another shortcode solution I was recently asked by a client how they could...
Related posts brought to you by Yet Another Related Posts Plugin.
scriptygoddess
