media_post_single_attachment_fields_to_edit()
Retrieves the post non-image attachment fields to edit form fields.
No Hooks.
Return
Array
. Filtered attachment form fields.
Usage
media_post_single_attachment_fields_to_edit( $form_fields, $post );
- $form_fields(array) (required)
- An array of attachment form fields.
- $post(WP_Post) (required)
- The WP_Post attachment object.
Changelog
Since 2.8.0 | Introduced. |
media_post_single_attachment_fields_to_edit() media post single attachment fields to edit code WP 6.5.2
function media_post_single_attachment_fields_to_edit( $form_fields, $post ) { unset( $form_fields['image_url'] ); return $form_fields; }