In Edit Post page, I'm adding media from Add Media panel by clicking on "Insert into post" button. I'm trying to feed a Custom Field with the URLs from those selected images, but it is not working.
If I use the following action, I can access the field and fill it up with a dummy string without problems:
By using the hook
image_send_to_editor I'm able to get the URL from the selected images in Add Media panel, but when I try to use these URLs in a variable and set it as a value in a field by its ID, nothing happens. I thought I should be able to have a mix with the above code, but I was wrong. This doesn't work:
How can I feed a Custom Field with URL from Add Media?