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?
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It only takes a minute to sign up.
Sign up to join this communityI 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?