W3cubDocs

/WordPress

apply_filters( 'attachment_fields_to_edit', array $form_fields, WP_Post $post )

Filters the attachment fields to edit.

Parameters

$form_fields

(array) An array of attachment form fields.

$post

(WP_Post) The WP_Post attachment object.

Source

File: wp-admin/includes/media.php

View on Trac

Changelog

Version Description
2.5.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/attachment_fields_to_edit