Created
September 21, 2022 03:23
-
-
Save wpgaurav/04b74910f33b96cc8abf5a8447e0750f to your computer and use it in GitHub Desktop.
Limit the maximum number of post revisions stored on Database
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 | |
if(!defined('WP_POST_REVISIONS')) define('WP_POST_REVISIONS',10); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This works only if you have not already set post revisions’ limit in your WordPress installation’s wp-config.php file.