Import metadata into Media library

Issue #3 resolved
Erin Bell created an issue

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)

  1. Erin Bell reporter

    It looks like the $desc parameter of media_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.

  2. Log in to comment