Function: media_single_attachment_fields_to_edit

media_single_attachment_fields_to_edit( array $form_fields, WP_Post $post )

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

Parameters

Name Type(s) Default Value Description
$form_fields array

An array of attachment form fields.

$post WP_Post

The WP_Post attachment object.

Returns

array

Filtered attachment form fields.

WordPress Developer Newsletter

Stay on top of the latest WordPress API changes, developer tool updates, security alerts and more.