media_post_single_attachment_fields_to_edit
函数
media_post_single_attachment_fields_to_edit ( $form_fields, $post )
- 参数
-
-
(array)
$form_fields
An array of attachment form fields.- Required: 是
-
(WP_Post)
$post
The WP_Post attachment object.- Required: 是
-
(array)
- 返回值
-
- (array) Filtered attachment form fields.
- 定义位置
-
-
wp-admin/includes/media.php
, line 1333
-
wp-admin/includes/media.php
- 引入
- 2.8.0
- 弃用
- –
Retrieves the post non-image attachment fields to edit form fields.
function media_post_single_attachment_fields_to_edit( $form_fields, $post ) { unset( $form_fields['image_url'] ); return $form_fields; }
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。