Import metadata into Media library
Issue #3
resolved
When an image is added to a post, that image is automatically added to the Media library. Can we also add the title and description automatically? This would be very useful for files that may be reused across posts.
Comments (2)
-
reporter -
reporter - changed status to resolved
- Log in to comment
It looks like the
$desc
parameter ofmedia_handle_sideload()
puts a string in the file’s title field of the file within the Media Library. From this forum post, it looks like you can pass an array to the$post_data
parameter with a caption and/or description. So in cdm_ajax.php on line 120, we should be able to easily add that stuff.