In this series of articles, I am going to introduce each of the plugins I have developed for ClassicPress, a hard-fork of WordPress, which was originally created to provide an alternative, yet compatible, CMS without the Gutenberg block editor.
The 34th plugin is Remove Revisions.
While revisions can be disabled or limited in number with settings in the wp-config file, there is no way to allow for the deletion of revisions over a certain ago. That is what this plugin allows you to do.
In the options you can set the number of months after which revisions are to be deleted. They can then be deleted at the click of a button or via a cron job running on a daily schedule.
The options also allow you to select the post types (both standard and custom) which can have revisions removed.
Removal of revisions is done using the ClassicPress function to ensure they are done correctly.
This plugin is multisite compatible, with options set on a per site basis.