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

返回介绍

media_post_single_attachment_fields_to_edit()

发布于 2017-09-11 字数1092 浏览 834 评论 0

media_post_single_attachment_fields_to_edit( array $form_fields,  WP_Post $post )

Retrieves the post non-image attachment fields to edito 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_post_single_attachment_fields_to_edit( $form_fields, $post ) {
	unset($form_fields['image_url']);
	return $form_fields;
}

更新日志

Version 描述
2.8.0 Introduced.

User Contributed Notes

发布评论

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

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