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:

Description

Retrieves the attachment fields to edit form fields.

Related Functions

image_attachment_fields_to_edit, image_attachment_fields_to_save, media_single_attachment_fields_to_edit, media_post_single_attachment_fields_to_edit, get_attachment_icon

Top Google Results

User discussions

wpseek mobile