media_single_attachment_fields_to_edit() - WordPress 函数参考中文文档

返回介绍

media_single_attachment_fields_to_edit()

发布于 2017-09-11 字数1128 浏览 799 评论 0

media_single_attachment_fields_to_edit( array $form_fields,  WP_Post $post )

Retrieves the single non-image attachment fields to edit form fields.


描述


参数

$form_fields

(array)
(Required)
An array of attachment form fields.

$post

(WP_Post)
(Required)
The WP_Post attachment object.


返回值

(array) Filtered attachment form fields.


源代码

File: wp-admin/includes/media.php

function media_single_attachment_fields_to_edit( $form_fields, $post ) {
	unset($form_fields['url'], $form_fields['align'], $form_fields['image-size']);
	return $form_fields;
}

更新日志

Version 描述
2.5.0 Introduced.

User Contributed Notes

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

目前还没有任何评论,快来抢沙发吧!