Opened 9 years ago
Closed 9 years ago
#32695 closed enhancement (duplicate)
media_sideload_image should have option to return ID
Reported by: | kraftbj | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.2 |
Component: | Media | Keywords: | |
Focuses: | Cc: |
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.
Adds new id return.