image_attachment_fields_to_save

函数
image_attachment_fields_to_save ( $post, $attachment )
参数
  • (array) $post The WP_Post attachment object converted to an array.
    Required:
  • (array) $attachment An array of attachment metadata.
    Required:
返回值
  • (array) Attachment post object converted to an array.
定义位置
相关方法
image_attachment_fields_to_editget_attachment_fields_to_editmedia_single_attachment_fields_to_editmedia_post_single_attachment_fields_to_editget_attachment_icon_src
引入
2.5.0
弃用
6.0.0

image_attachment_fields_to_save: 此函数用于保存媒体库中图像附件的编辑字段。

用于过滤来自 media_upload_form_handler() 的输入,如果没有提供文件名,则从文件名中指定一个默认的 post_title。

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

	return $post;
}

常见问题

FAQs
查看更多 >
闪电侠

(工作日 10:00 - 18:30 为您服务)

2025-12-14 09:36:28

您好,无论是售前、售后、意见建议……均可通过联系工单与我们取得联系。

您也可选择聊天工具与我们即时沟通或点击查看:

您的工单我们已经收到,我们将会尽快跟您联系!
取消
选择聊天工具: