wp and woo uploads directory based on category
-
wanting a simple thing. but unsure of best way to do it.
I used a plugin Custom Upload Dir and it does exactly what I need, but only AFTER a post is published and has category, etc.I wish to do following:
upload csv file of products to woocommerce products,
csv contains link to image.
When I publish the product via import the image should be placed into the CATEGORY subfolder of year/month/CATEGORY here….. folder.
Custom Upload Dir does it wonderfully, but not durin the IMPORT of products programatically.
Pretty sure a filter can be added to the wp upload dir functions
Any tips on how to easily do?structure.
post info, contains image link.
on publish post, IF category info exists, place image into subfolder with that category-slug nameand link as product image.
- The topic ‘wp and woo uploads directory based on category’ is closed to new replies.