https://divi.space/blog/limit-number-postpage-versions-stored-database-without-plugin/
Though there are several plugins that handle the number of versions saved, if that’s all you’re trying to do then you might find them a little bloated. Luckily there’s a simple filter called ‘wp_revisions_to_keep‘ which makes it easy to limit the maximum number of revisions on any post or page.
If you want to limit the number of revisions being kept in the database in your Divi install then add this to your child theme’s functions.php:
Sent from my Samsung Galaxy smartphone.