media_single_attachment_fields_to_edit()
最后更新于:2021-11-27 14:45:16
media_single_attachment_fields_to_edit( array$form_fields, GC_Post$post)Retrieves the single non-image attachment fields to edit form fields.
参数
- $form_fields
-
(array) (Required) An array of attachment form fields.
- $post
响应
(array) Filtered attachment form fields.
源文件
文件: gc-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;
}