‘POST REVISIONS’ help us to fall back to an earlier version of the posts/pages if you accidentally/intentionally modified the contents of that particular post or page and want to restore the previous contents immediately. By default, POST REVISIONS are kept disabled after a fresh WordPress installation. But wait, you can enable that by following some simple steps as below:
1. Locate your wp-config.php file (Should be inside the root directory of your WordPress installation)
2. Find
define('WP_POST_REVISIONS', false);
Replace 'false'
to 'true'
like below:
define('WP_POST_REVISIONS', true);
3. If there is no such line found, then no worry, you can add that line on the wp-config.php file above /* That’s all, stop editing! Happy blogging. */
4. And you are done!
Now go to your posts/pages ‘EDIT’ section from the dashboard, and whenever you modified any posts, you can see the number of revisions at the right-side panel
Sometimes, you may need to check the “screen options” and make sure you have a checkmark on “Revisions”
However, enabling ‘POST REVISIONS’ will increase your database size which may reduce the performance of the DB when you have a large number of posts/pages on your site. To minimize the issue, you can always limit the number of Revisions that your site should save like below:
define('WP_POST_REVISIONS', 5);
where 5 is the maximum number of revisions that your site now should save to your database.