Custom_Image_Header::attachment_fields_to_edit() WordPress Method
The Custom_Image_Header::attachment_fields_to_edit() method is used to add custom fields to the image attachment fields in the Wordpress media library. This can be useful for adding extra data to images, such as copyright information or other metadata.
Custom_Image_Header::attachment_fields_to_edit( array $form_fields ) #
Unused since 3.5.0.
Contents
Parameters
- $form_fields
(array)(Required)
Return
(array) $form_fields
Source
File: wp-admin/includes/class-custom-image-header.php
public function attachment_fields_to_edit( $form_fields ) { return $form_fields; }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
3.4.0 | Introduced. |