Limit Number of Post Revisions
<?php function ccd_limit_post_revisions() { define( 'WP_POST_REVISIONS', 3); define( 'AUTOSAVE_INTERVAL', 180 ); } add_action( 'init', 'ccd_limit_post_revisions' ); ?>
WordPress Snippet