Opened 11 years ago
Closed 11 years ago
#32695 closed enhancement (duplicate)
media_sideload_image should have option to return ID
| Reported by: | kraftbj | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Media | Version: | 4.2 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
media_sideload_image can either return the URL of the sideloaded image or a full HTML tag. It should have an option to return the attachment ID as well.
One use case is to sideload an image, then set it as a the post_thumbnail.
This is currently possible via media_handle_sideload but requires duplication of the work already being done in media_sideload_image.
Attachments (1)
Change History (2)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Adds new id return.