media_single_attachment_fields_to_edit( array $form_fields, WP_Post $post ): array
Retrieves the single non-image attachment fields to edit form fields.
Parameters
Return
array Filtered attachment form fields.
Source
File: wp-admin/includes/media.php
.
View all references
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
Version | Description |
---|---|
2.5.0 | Introduced. |