media_post_single_attachment_fields_to_edit( array $form_fields, WP_Post $post )

Retrieves the post non-image attachment fields to edito 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_post_single_attachment_fields_to_edit( $form_fields, $post ) {
	unset($form_fields['image_url']);
	return $form_fields;
}

Changelog

Changelog
Version Description
WP-2.8.0 Introduced.