Created
February 18, 2019 02:27
-
-
Save whalesingswee/c45bf9654917924a8db664aca2107d3c to your computer and use it in GitHub Desktop.
Limit the number of posts revisions that WordPress stores in the database
This file contains hidden or 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
//The limit can be set in wp-config.php: | |
define('WP_POST_REVISIONS', 3); | |
//WP_POST_REVISIONS: | |
// true (default), -1: store every revision | |
// false, 0: do not store any revisions (except the one autosave per post) | |
// (int) > 0: store that many revisions (+1 autosave) per post. Old revisions are automatically deleted. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment