Skip to content

Add a flag to media import files for returning the URL instead of the attachment ID #94

@schlessera

Description

@schlessera

Moved from wp-cli/wp-cli#4666 by @killown


hi there, could you implement a way to return the file url after import?

Example:

wp media import test.txt --return_url
https://mywordpress.com/test.txt

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions