How can one limit the amount of "revisions" that are allowed to go back on pages & pos

Hi folks,

How can one limit the amount of "revisions" that are allowed to go back on pages & posts?

What is the best way to remove automatically all past revisions for pages and posts, say, beyond 25 versions?

:slight_smile: