On this page
image_attachment_fields_to_save( array $post, array $attachment ): array
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
$postarray Required-
The WP_Post attachment object converted to an array.
$attachmentarray Required-
An array of attachment metadata.
Return
array Attachment post object converted to an array.
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;
}
Related
Uses
| Uses | Description |
|---|---|
| _deprecated_function() wp-includes/functions.php | Marks a function as deprecated and inform when it has been used. |
Changelog
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/image_attachment_fields_to_save