• 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

Viewing 1 replies (of 1 total)
  • Thread Starter valfreixo

    (@valfreixo)

    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?

Viewing 1 replies (of 1 total)
  • The topic ‘Post a image from code’ is closed to new replies.