Created
January 15, 2013 13:37
-
-
Save michaeloeser/4538692 to your computer and use it in GitHub Desktop.
Limit Post Revisions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Maximum 5 revisions | |
define('WP_POST_REVISIONS', 5); | |
// Disable revisions | |
define('WP_POST_REVISIONS', false); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I love the autosave function but I do end up with loads of post revisions. Use this to limit the number.