image_attachment_fields_to_edit() WordPress Function
This function allows you to filter the image attachment fields to edit. This can be useful for adding custom fields to attachments or for hiding unnecessary fields.
image_attachment_fields_to_edit( array $form_fields, object $post ) #
Retrieves the image attachment fields to edit form fields.
Contents
Parameters
- $form_fields
(array)(Required)
- $post
(object)(Required)
Return
(array)
Source
File: wp-admin/includes/media.php
function image_attachment_fields_to_edit( $form_fields, $post ) { return $form_fields; }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |