ControlledChaos of Controlled Chaos Design
8/9/2016 - 6:40 PM

Limit Number of Post Revisions

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' );

?>

Limit Number of Post Revisions

WordPress Snippet