How can I keep only the first published and most recent versions of a post?


I’ve got a custom post type where the posts often undergo several minor revisions.

Saving all the revisions is unnecessary and seems wasteful to keep so many useless DB entries.

But I do need to keep the Original (first published version) and the Latest (most recently updated version).

Can anyone point me in the direction of how to accomplish this? Thanks!

, brandonjp 3 years 2019-10-28T04:26:49-05:00 0 Answers 77 views 0

Leave an answer