alleyinteractive / wp-block-audit-command

Audit WordPress block usage in post content.
GNU General Public License v2.0
6 stars 0 forks source link

Add "before" and "after" date parameters #3

Open dlh01 opened 7 months ago

dlh01 commented 7 months ago

Description

It isn't possible to pass a date query via a flag argument (see also https://github.com/wp-cli/wp-cli/issues/4616), but we could accept --start-date and --end-date flags that map to a date query.

Use Case

We were once asked to provide an audit for posts published in the last 12 months. We had to settle for two year-based queries.

Eniamza commented 2 days ago

Hey, Can you provide a sample command for this specific use case? I'm also struggling with the same issue.