I’m creating a plugin for a customer that will add woocommerce products from images (images currently added via FTP) in a custom folder. The user also wants to be able to create a new folder each month to upload new images into and hit a button to create the products.
So I have everything working par the user been able to upload images to a custom folder. How can I select what folder the user uploads the images too using a custom media uploader in the plugin and then images for everywhere else on the site the images use the normal folders?
I’ve seen you can add something to the wp_config file that changes which folder you use but that’s not acceptable in this case as we still need to use the normal media uploader and change folders for the custom one each month.
Any help would be appreciated
- Hiện tại chúng tôi có hơn 25 nghìn bài văn mẫu các thể loại.
- Kho tài liệu, đề thi học sinh giỏi các lớp vô cùng phong phú.
- Mỗi ngày cập nhật hơn 100 đề thi chất lượng từ các website bán tài liệu lớn.
Tải đề thi VIP với giá siêu rẻ tại Vip.Dethihsg247.Com