media_post_single_attachment_fields_to_edit()
media_post_single_attachment_fields_to_edit( array $form_fields, WP_Post $post )
检索post非图像附件字段以编辑表单字段。
Retrieves the post non-image attachment fields to edit form fields.
参数(Parameters)
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
$form_fields | (array) | 必需 | 附件表单字段的数组。 |
$post | (WP_Post) | 必需 | WP_Post附件对象。 |
返回(Return)
(array)筛选的附件表单字段。
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
2.8.0 | wp-admin/includes/media.php:1287 | 0 | 0 |
media_post_single_attachment_fields_to_edit() 为WP2原创文章,链接:https://www.wp2.cn/functions/media_post_single_attachment_fields_to_edit/