Core Function
View Source on Trac ↗ get_attachment_fields_to_edit()
get_attachment_fields_to_edit( mixed $post, mixed $errors = null ) Retrieves the attachment fields to edit form fields.
Parameters 2 required
| Name / Type | Description |
|---|---|
| WP_Post | $post Required |
| array | $errors Required |
Return Value
(array)
array
Function Information
Since Version
2.5.0
Source File
wp-admin/includes/media.php
Advertisement