media_post_single_attachment_fields_to_edit() – Retrieves the post non-image attachment fields to edito form fields.
You appear to be a bot. Output may be restricted
Description
Retrieves the post non-image attachment fields to edit form fields.
Usage
$array = media_post_single_attachment_fields_to_edit( $form_fields, $post );
Parameters
- $form_fields
- ( array ) required – An array of attachment form fields.
- $post
- ( WP_Post ) required – The WP_Post attachment object.
Returns
array Filtered attachment form fields.
Source
File name: wordpress/wp-admin/includes/media.php
Lines:
1 to 4 of 4
function media_post_single_attachment_fields_to_edit( $form_fields, $post ) { unset( $form_fields['image_url'] ); return $form_fields; }