array $form_fields, WP_Post $post )
Filters the attachment fields to edit.
- WordPress does not pass standard fields through this filter, though this can still be used for adding attachment form fields.
- Note that the filter function must return an array of attachment form fields after it is finished processing; otherwise, no fields will be displayed when editing an attachment and other plugins also filtering the
$form_fieldsarray may generate errors.
View all references
$form_fields = apply_filters( 'attachment_fields_to_edit', $form_fields, $post );