apply_filters( 'attachment_fields_to_edit', array $form_fields, WP_Post $post )
Filters the attachment fields to edit.
Parameters
More Information
- WordPress does not pass standard fields through this filter, though this can still be used for adding attachment form fields.
- Note that the filter function must return an array of attachment form fields after it is finished processing; otherwise, no fields will be displayed when editing an attachment and other plugins also filtering the
$form_fields
array may generate errors.
Source
Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/attachment_fields_to_edit