WordPress at a glance
function is not described

media_single_attachment_fields_to_edit() WP 2.5.0

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

No Hooks.


Array. Filtered attachment form fields.


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


Since 2.5.0 Introduced.

Code of media single attachment fields to edit: wp-admin/includes/media.php WP 5.2.2

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