image_attachment_fields_to_save


image_attachment_fields_to_save ( $post, $attachment )

Parameters:
  • (array) post The WP_Post attachment object converted to an array.
  • (array) attachment An array of attachment metadata.
Returns:
  • (array) Attachment post object converted to an array.
Defined at:

Description

Was used to filter input from media_upload_form_handler() and to assign a default post_title from the file name if none supplied.

Related Functions

image_attachment_fields_to_edit, get_attachment_fields_to_edit, media_single_attachment_fields_to_edit, media_post_single_attachment_fields_to_edit, get_attachment_icon_src

Top Google Results

User discussions

wpseek mobile