Warning: This function has been deprecated.

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

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

$post array Required
The WP_Post attachment object converted to an array.
$attachment array Required
An array of attachment metadata.

Top ↑

Return

array Attachment post object converted to an array.


Top ↑

Source

File: wp-admin/includes/deprecated.php. View all references

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

	return $post;
}


Top ↑

Changelog

Changelog
Version Description
6.0.0 This function has been deprecated.
2.5.0 Introduced.

Top ↑

User Contributed Notes

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