Skip to content

support WP_Query's date_query values from wp post list command-line #519

Closed
@drzraf

Description

@drzraf

Feature Request

Describe your use case and the problem you are facing

wp post list support arbitrary --<field> being passed to WP_Query but date parameters which depends on a nested structure are not handled. Doing so would allow handy filtering logic based on post date attributes.

Describe the solution you'd like

--date-<field> could be used as a prefix opening the way to things like --date-before=2024-01-01 or --date-year=2025
(The same applied to meta_query would also be great as it would resolves the long-standing problem of retrieving posts based on meta-condition straight from wp post list without any piping/subcommand)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions