WordPress.org

Make WordPress Core

Opened 3 months ago

Closed 8 weeks ago

#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:

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
3 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
8 weeks 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
8 weeks ago

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