Summery Summery
Retrieves the media element HTML to send to the editor.
Syntax Syntax
Parameters Parameters
- $html
-
(Required)
- $attachment_id
-
(Required)
- $attachment
-
(Required)
Return Return
(string)
Source Source
File: wp-admin/includes/media.php
*/
function image_attachment_fields_to_edit( $form_fields, $post ) {
return $form_fields;
}
/**
* Retrieves the single non-image attachment fields to edit form fields.
*
* @since 2.5.0
*
* @param array $form_fields An array of attachment form fields.
* @param WP_Post $post The WP_Post attachment object.
* @return array Filtered attachment form fields.
*/
Advertisement
Changelog Changelog
| Version | Description |
|---|---|
| 2.5.0 | Introduced. |