image_attachment_fields_to_edit() WordPress Function

This function allows you to filter the image attachment fields to edit. This can be useful for adding custom fields to attachments or for hiding unnecessary fields.

image_attachment_fields_to_edit( array $form_fields, object $post ) #

Retrieves the image attachment fields to edit form fields.


Parameters

$form_fields

(array)(Required)

$post

(object)(Required)


Top ↑

Return

(array)


Top ↑

Source

File: wp-admin/includes/media.php

function image_attachment_fields_to_edit( $form_fields, $post ) {
	return $form_fields;
}

Top ↑

Changelog

Changelog
VersionDescription
2.5.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.

Show More
Show More