Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
How can I define the maximum number of revisions on a per-post type basis?
For example posts have 3 max revisions where as pages have a max of 10.
I might be wrong, but my first guess would be that this is not easily possible, because number of revisions gets saved into constant and does not seem hook-able.
From quick search relevant checks are in wp_save_post_revision() and it's very rigid.
Required, but never shown