Hi Folks,
I'm writing a plugin which needs to add images to posts.
I got the link of an external image, like http://example.com/image.jpg
The question is: how do I add this to the media library without doing it myself? (There are 2000+ images, so I don't have the time to click them together)
What I found already (and was not looking for):
- how to do it manually (that's easy, huh)
- how to retrieve an image from the library (I wish it was time for that, let's add 'm)