media_single_attachment_fields_to_edit( array $form_fields, WP_Post $post )

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


Parameters

$form_fields

(Required) An array of attachment form fields.

$post

(Required) The WP_Post attachment object.


Return

(array) Filtered attachment form fields.


Source

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;
}

Changelog

Changelog
Version Description
WP-2.5.0 Introduced.