WordPress at a glance
function is not described

media_post_single_attachment_fields_to_edit() WP 2.8.0

Retrieves the post non-image attachment fields to edito form fields.

No Hooks.


Array. Filtered attachment form fields.


media_post_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.8.0 Introduced.

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

function media_post_single_attachment_fields_to_edit( $form_fields, $post ) {
	unset( $form_fields['image_url'] );
	return $form_fields;