Make WordPress Core

Opened 4 years ago

Closed 4 years ago

#50168 closed feature request (invalid)

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

Reported by: backups's profile BackuPs Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Media Keywords:
Focuses: Cc:

Description

Hi

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.

https://cl.ly/a0c3d9204d2e

https://cl.ly/a0c3d9204d2e

Change History (3)

#1 @SergeyBiryukov
4 years 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
4 years 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
4 years ago

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