Skip to content

Option to override filename while importing media #186

@sandeshjangam

Description

@sandeshjangam

Feature Request

Describe your use case and the problem you are facing

Import media from URL

wp media import https://images.pexels.com/photos/708587/pexels-photo-708587.jpeg --title=abc --caption=caption --alt=alt

After import URL

http://test.local/wp-content/uploads/2023/11/pexels-photo-708587.jpeg

No option to override a file name pexels-photo-708587.jpeg

Describe the solution you'd like
We can introduce the new option slug

--slug=abcd 

After this change, after import URL will be
After import URL

http://test.local/wp-content/uploads/2023/11/abcd.jpeg

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions