wp-cli / media-command

Imports files as attachments, regenerates thumbnails, or lists registered image sizes.
MIT License
44 stars 41 forks source link

Support --post_name=<name> when importing media #166

Closed mpkelly closed 1 year ago

mpkelly commented 1 year ago

Fixes https://github.com/wp-cli/media-command/issues/100

A small PR to pass through the --post_name param. It was my "bottle" from the pickup session. I've updated the test suite, so hopefully should be straightforward to test and review.