media_post_single_attachment_fields_to_edit()

最后更新于:2021-11-27 14:44:35

media_post_single_attachment_fields_to_edit( array$form_fields, GC_Post$post)

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

参数

$form_fields

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

$post

(GC_Post) (Required) The GC_Post attachment object.

响应

(array) Filtered attachment form fields.

源文件

文件: gc-admin/includes/media.php

function media_post_single_attachment_fields_to_edit( $form_fields, $post ) {
	unset( $form_fields['image_url'] );
	return $form_fields;
}