Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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.

share|improve this question
add comment

1 Answer

up vote 3 down vote accepted

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.

share|improve this answer
    
Thanks Rarst, back to the drawing board~ –  mattrepublic Jul 3 '11 at 15:17
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.