Return to Snippet

Revision: 67362
at September 13, 2014 10:23 by chrisaiv


Initial Code
function limit_post_revisions(){
	//limit the number of posts revisions that WordPress stores 
	define( 'WP_POST_REVISIONS', 3);
	
	define( 'AUTOSAVE_INTERVAL', 180 );
	
}
add_action('init', 'limit_post_revisions');

Initial URL

                                

Initial Description
If you make a lot of edits, eventually the revisions will start to bother you or bog down your database.  Heres how you can put a cap on the number of recorded revisions.

Initial Title
Wordpress: Limit # of Post Revisions

Initial Tags
wordpress

Initial Language
PHP