Problem with “wp-cli media upload” destination directory
-
This is a question about wp-cli :
I’ve noticed that when using “wp-cli media upload” with the “–post_id=NN” flag, the image ends up getting uploaded to a /yyyy/mm/ directory matching the year and month of the post it is going to be attached to.
I’m wondering if there’s any way to control the destination directory for attached images via wp-cli itself?
(I know I could add a “define(‘UPLOADS’, ‘path’) to the wp-config.php but I want to avoid that because that has its own very BIG problems)
The topic ‘Problem with “wp-cli media upload” destination directory’ is closed to new replies.