image_attachment_fields_to_save( array $post, array $attachment ): array

In this article

This function has been deprecated.

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

Parameters

$postarrayrequired
The WP_Post attachment object converted to an array.
$attachmentarrayrequired
An array of attachment metadata.

Return

array Attachment post object converted to an array.

Source

function image_attachment_fields_to_save( $post, $attachment ) {
	_deprecated_function( __FUNCTION__, '6.0.0' );

	return $post;
}

Changelog

VersionDescription
6.0.0This function has been deprecated.
2.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.