return option for media_sideload_image
|Reported by:||slbmeh||Owned by:|
An optional parameter to return the attachment id opposed to the html would be beneficial to those attempting to make use of this functionality outside of press this.
Ticket: #11993 has an enhancement suggestion to allow adding thumbnails from URL. I have written a solution for this enhancement, and the result duplicates the functionality of media_sideload_image() setting the post thumbnail opposed to returning the image html markup.
Change History (21)
comment:6 in reply to: ↑ 5 SergeyBiryukov — 19 months ago
comment:14 nacin — 16 months ago
- Keywords 3.6-early added
- Milestone changed from 3.5 to Future Release