[wp-hackers] Populating Image meta box fields on new image upload
peter at oncefuture.com
Sun Jul 10 03:28:23 UTC 2011
ok, getting a little closer. I'm now using the attachment_fields_to_edit hook to populate the empty form fields on the attachment meta screen but i can't populate the "Alternate text" field.
I see it in the $form_fields array that is passed into the hook but any label or value I set on it does not show up on the form.
On Jul 9, 2011, at 3:04 AM, Charles Frees-Melvin wrote:
> They are the title and the_content of the attachment:image post-type.
> Charles E. Frees-Melvin
> Sent from my Rogers iPhone 3G
> On 2011-07-09, at 6:55, Peter Adams <peter at oncefuture.com> wrote:
>> Hi folks -
>> I can't figure out how to populate the fields on the image meta box. I see that the title, and description are populated from the image's EXIF fields, but they are not stored in the attachment meta so there for i can't use wp_generate_attachment_meta filter to populate/change them.
>> Where are they stored?
>> I'd like to filter the values before they are populated in the image meta box upon new image upload.
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers