Core Function
View Source on Trac ↗ media_single_attachment_fields_to_edit()
media_single_attachment_fields_to_edit( mixed $form_fields, mixed $post ) Retrieves the single non-image attachment fields to edit form fields.
Parameters 2 required
| Name / Type | Description |
|---|---|
| $form_fields array | An array of attachment form fields. Required |
| $post WP_Post | The WP_Post attachment object. Required |
Return Value
(array)
Filtered attachment form fields.
Function Information
Since Version
2.5.0
Source File
wp-admin/includes/media.php
Advertisement