How to move an image in a plugin to the upload directory and make it as a media of wordpress?
I would like to use them in posts.
I would like to generate images using other programs and saved in the temporary folder of my plugin directory.
Then, I would like to upload the image to the upload directory an use it as a media source.
Is that possible?