For our customization want to limit the maximum number of post revisions then do the following:
Open wp-config.php file which is located in your website root folder. Add following code in that file.

define ('WP_POST_REVISIONS', 5);

Here 5 is an post revision limit. you can alter this value as you want. if you have any doubt, then comment here!

Leave a Reply

Your email address will not be published. Required fields are marked *