Image upload Via URL progromatically to Media Library
-
i have to upload an image without using media library option in WordPress. So i was planning to create a function and upload using image url anywhere in internet i reviewed some links and tried some codes but some codes working but the issue is the images are repeating each time i realod the media library or reload anything in wordpress tab.. I tried to solve the code but there is no code that can prevent the repeating and store only 1 image and no repeat i will refer that website here hope any one can help me with this need an urgetn solution thankss..
https://wordpress.stackexchange.com/questions/256830/programmatically-adding-images-to-media-library
https://seegatesite.com/simple-way-of-retrieve-and-upload-an-image-from-url-on-wordpress-programmatically/ -> This one working fine but the images are repeating and 1st time images uploaded 4nos
- The topic ‘Image upload Via URL progromatically to Media Library’ is closed to new replies.