Title: Custom_Image_Header::attachment_fields_to_edit
Published: April 25, 2014
Last modified: May 20, 2026

---

# Custom_Image_Header::attachment_fields_to_edit( array $form_fields ): array

## In this article

 * [Parameters](https://developer.wordpress.org/reference/classes/custom_image_header/attachment_fields_to_edit/?output_format=md#parameters)
 * [Return](https://developer.wordpress.org/reference/classes/custom_image_header/attachment_fields_to_edit/?output_format=md#return)
 * [Source](https://developer.wordpress.org/reference/classes/custom_image_header/attachment_fields_to_edit/?output_format=md#source)
 * [Changelog](https://developer.wordpress.org/reference/classes/custom_image_header/attachment_fields_to_edit/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/classes/custom_image_header/attachment_fields_to_edit/?output_format=md#wp--skip-link--target)

Unused since 3.5.0.

## 󠀁[Parameters](https://developer.wordpress.org/reference/classes/custom_image_header/attachment_fields_to_edit/?output_format=md#parameters)󠁿

 `$form_fields`arrayrequired

## 󠀁[Return](https://developer.wordpress.org/reference/classes/custom_image_header/attachment_fields_to_edit/?output_format=md#return)󠁿

 array $form_fields

## 󠀁[Source](https://developer.wordpress.org/reference/classes/custom_image_header/attachment_fields_to_edit/?output_format=md#source)󠁿

    ```php
    public function attachment_fields_to_edit( $form_fields ) {
    	return $form_fields;
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-admin/includes/class-custom-image-header.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-admin/includes/class-custom-image-header.php#L1144)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/class-custom-image-header.php#L1144-L1146)

## 󠀁[Changelog](https://developer.wordpress.org/reference/classes/custom_image_header/attachment_fields_to_edit/?output_format=md#changelog)󠁿

| Version | Description | 
| [3.4.0](https://developer.wordpress.org/reference/since/3.4.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fclasses%2Fcustom_image_header%2Fattachment_fields_to_edit%2F)
before being able to contribute a note or feedback.