Core Function
View Source on Trac ↗ image_attachment_fields_to_save()
image_attachment_fields_to_save( mixed $post, mixed $attachment ) Was used to filter input from media_upload_form_handler() and to assign a default
Parameters 2 required
| Name / Type | Description |
|---|---|
| $post array | The WP_Post attachment object converted to an array. Required |
| $attachment array | An array of attachment metadata. Required |
Return Value
(array)
Attachment post object converted to an array.
Function Information
Since Version
2.5.0
Source File
wp-admin/includes/deprecated.php
Advertisement