wp max revisions
Add the following code to your WordPress site's wp-config.php file to limit the number of revisions saved for each post:
define( 'WP_POST_REVISIONS', 5 );
This line of code will restrict WordPress to save a maximum of 5 revisions for each post. You can adjust the number as needed by changing the value.
Once you've added the code, save the wp-config.php file and the changes should take effect immediately.