Make WordPress Core

#50168 closed feature request (invalid)

How to add a custom field to the media modal popup screen

Reported by: BackuPs Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Media Keywords:
Focuses: Cc:



I know how to add a field to the media item in list format and then click the edit button.

But how to add that same field to the media item when in grid format and then click the image to edit the image. It is a modal popup window. But is has not the custom field that is visible when using the list media items and then click the edit button.

Change History (3)

#1 @SergeyBiryukov
21 months ago

  • Component changed from General to Media
  • Keywords close added

Hi there, thanks for the ticket!

There is the 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 Find Posts Using Attachments plugin.

#2 @desrosj
20 months ago

  • Keywords close removed
  • Milestone Awaiting Review deleted
  • Version 5.4.1 deleted

Closing this ticket out. If you discover a specific, reproducible bug, feel free to open a new ticket @BackuPs!

Otherwise, the support forums are the best place to receive further assistance.

#3 @desrosj
20 months ago

  • Resolution set to invalid
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.