Define maximum number of revisions per post type? olatechproMarch 1, 20231 Views 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. Post Views: 1 Related postsGet rid of this Strict Standards warningWooCommerce: get_current_screen not working with multi languageCan’t login on WordPressForce HTTPS using .htaccess – stuck in redirect loopWordPress: Ajax not working to insert, query and result dataHow Can I pass an image file to wp_handle_upload?
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. Log in to Reply
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.