get_attachment_fields_to_edit
get_attachment_fields_to_edit ( $post, $errors = null )
Parameters:- (WP_Post) post
- (array) errors
Returns:- (array<string,array<string,mixed>|string>) The attachment fields, keyed by field name. Each value is a
field definition array, except for the `_final` key, which the
`attachment_fields_to_edit` filter may set to raw HTML that is
rendered after all other fields.
Defined at: - Introduced in WordPress: 2.5.0
- Deprecated in WordPress: —
Description
Retrieves the attachment fields to edit form fields.