I'm building a plugin that will have dedicated images. Is there a way for me to post an image directly from my code (plugin code) or do I have to post the image, write down the id (or url) go back to the plugin and put it in the form?
Thank you guys
I'm building a plugin that will have dedicated images. Is there a way for me to post an image directly from my code (plugin code) or do I have to post the image, write down the id (or url) go back to the plugin and put it in the form?
Thank you guys
Ok, update. I've actually builted an form to upload the file and found the image_resize tag. By looking at the code in media.php it does what I need. However, I couldn't retrieve the $_FILES var. I guess wordpress is reseting it so I can't catch it on the other side. Any idea?
This topic has been closed to new replies.