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.


Parameters

$form_fields

(array)(Required)


Top ↑

Return

(array) $form_fields


Top ↑

Source

File: wp-admin/includes/class-custom-image-header.php

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

Top ↑

Changelog

Changelog
VersionDescription
3.4.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.