How to Limit Post Revisions in WordPress

If you site has 600 posts and 100 revisions for each post. It will 60 000 entries in your database!!!!

Limit Post Revision will keep your database smaller and your site running fast. Follow these steps to limit post revision in WordPress.

Method 1. Limit Post Revision with Code

1. Access your hosting cPanel > Open wp-config.php

wp-config-file

2. Paste this code

You can change Number of Revision (3)

Method 2. Limit Post Revision with Plugin

You can use Perfmatters Plugin to Limit Post Revision.

Just install, activate plugin, then go to Settings > Perfmatters

settings-perfmatters-min

Options > Limit Post Revisions > Save Changes

limit-post-revisions-perfmatters1-min

Done!

Share this post:

Leave a Comment