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.
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It only takes a minute to sign up.
Sign up to join this communityHow 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.