Skip to main content
added 296 characters in body
Source Link
goodseller
  • 85
  • 1
  • 2
  • 6

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.

Expand question:

I would like to generate images using other programs and saved in the temporary folder of my plugin directory.

eg. plugin-name/tmp/image_01.jpg

Then, I would like to upload the image to the upload directory an use it as a media source.

Is that possible?

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.

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.

Expand question:

I would like to generate images using other programs and saved in the temporary folder of my plugin directory.

eg. plugin-name/tmp/image_01.jpg

Then, I would like to upload the image to the upload directory an use it as a media source.

Is that possible?

Source Link
goodseller
  • 85
  • 1
  • 2
  • 6

How to move an image in a plugin to the upload directory and make it as a media of wordpress?

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.