I see an option ([--post_date=<post_date>]) in wp-cli, but how can we use wp-cli to update all my published posts date randomly?

For example, I want all posts date changed randomly between 01-01-2021 to 01-01-2022, how can I do this using cli?

  • 1
    You'd have to write your own CLI subcommand - there's nothing out of the box that will do that for you.
    – vancoder
    May 25 at 15:51


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.