If you use WordPress on your website you may have noticed that when you edit a post WordPress often saves those revisions and if you use the screen options to display the post revisions you may see a really long list of revisions. You may want to limit the number of revisions that it has in that list without using a plugin. You can then add this code to your functions.php file. You may want to backup your WordPress website before you make updates to that on there.
/** * Limit post revisions * * @author WPSnacks.com * @link https://www.wpsnacks.com */ if (!defined('WP_POST_REVISIONS')) define('WP_POST_REVISIONS', #); if (!defined('WP_POST_REVISIONS')) define('WP_POST_REVISIONS', false);
You can then replace the # with the number of revisions you want per post like 3 or 4 or 5 for example. Now if that works for you it would limit the number of post revisions on the posts on there.