image_attachment_fields_to_save
- image_attachment_fields_to_save is deprecated since version 6.0.0!
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: - Introduced in WordPress: 2.5.0
- Deprecated in WordPress: 6.0.0
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.