[wp-trac] [WordPress Trac] #50168: How to add a custom field to the media modal popup screen

WordPress Trac noreply at wordpress.org
Thu May 14 15:02:17 UTC 2020


#50168: How to add a custom field to the media modal popup screen
-----------------------------+------------------------------
 Reporter:  BackuPs          |       Owner:  (none)
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Media            |     Version:  5.4.1
 Severity:  normal           |  Resolution:
 Keywords:  close            |     Focuses:
-----------------------------+------------------------------
Changes (by SergeyBiryukov):

 * keywords:   => close
 * component:  General => Media


Comment:

 Hi there, thanks for the ticket!

 There is the
 [https://developer.wordpress.org/reference/hooks/attachment_fields_to_edit/
 attachment_fields_to_edit] filter that can be used to add custom fields to
 the Attachment Details modal.

 You can find an example in the [https://wordpress.org/plugins/find-posts-
 using-attachment/ Find Posts Using Attachments] plugin.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/50168#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list