wpseek.com
A WordPress-centric search engine for devs and theme authors



image_attachment_fields_to_save › WordPress Function

Since2.5.0
Deprecated6.0.0
image_attachment_fields_to_save ( $post, $attachment )
Parameters: (2)
  • (array) $post The WP_Post attachment object converted to an array.
    Required: Yes
  • (array) $attachment An array of attachment metadata.
    Required: Yes
Returns:
  • (array) Attachment post object converted to an array.
Defined at:
Codex:

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



Source

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

	return $post;
}