You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried using the "--before-date" param. So what I was expecting delete all revisions older than the enter date, but I have to enter the "keep" param too. Your script leaves exactly the "keep" number in all posts older than the before date. Is it possible to delete all posts older than a specific date without entering a "keep" number?
The text was updated successfully, but these errors were encountered:
The --before-date option is used to delete revisions based on the original post date, not the revision date. In other words, they are parallel to the post_type option - limiting the revision cleaning to that subset of posts.
This is perhaps a Feature Request and not a bug to add something like wp revisions clean --revisions-older-than=<date> and if needed, update the documentation to make this more clear.
I tried using the "--before-date" param. So what I was expecting delete all revisions older than the enter date, but I have to enter the "keep" param too. Your script leaves exactly the "keep" number in all posts older than the before date. Is it possible to delete all posts older than a specific date without entering a "keep" number?
The text was updated successfully, but these errors were encountered: