Elegantly prune post revisions – WordPress Development Stack Exchange


My post revisions are out of control. The issue is that I set the max number in wp-config too late, and some posts must have more than 30+ revisions, while others only have 1-2.

I can prune them all, but I would like to only prune revisions where there are more than 10 revisions on any one post.

Does anyone know a way of doing this?

Tom J Nowell 2 weeks 2023-03-06T14:44:38-05:00 0 Answers 0 views 0

Leave an answer