wpseek.com
WordPress开发者和主题制作者的搜索引擎



image_attachment_fields_to_save › WordPress Function

Since2.5.0
已弃用6.0.0
image_attachment_fields_to_save ( $post, $attachment )
参数: (2)
  • (array) $post The WP_Post attachment object converted to an array.
    Required: Yes
  • (array) $attachment An array of attachment metadata.
    Required: Yes
返回:
  • (array) Attachment post object converted to an 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.



源码

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

	return $post;
}