media_single_attachment_fields_to_edit() – Retrieves the single non-image attachment fields to edit form fields.

You appear to be a bot. Output may be restricted

Description

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

Usage

$array = media_single_attachment_fields_to_edit( $form_fields, $post );

Parameters

$form_fields
( array ) required – An array of attachment form fields.
$post
( WP_Post ) required – The WP_Post attachment object.

Returns

array Filtered attachment form fields.

Source

File name: wordpress/wp-admin/includes/media.php
Lines:

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

 View on GitHub View on Trac