media_single_attachment_fields_to_edit( array $form_fields, WP_Post $post )

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


Parameters Parameters

$form_fields

(array) (Required) An array of attachment form fields.

$post

(WP_Post) (Required) The WP_Post attachment object.


Top ↑

Return Return

(array) Filtered attachment form fields.


Top ↑

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

Top ↑

Changelog Changelog

Changelog
Version Description
2.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.