WordPress at a glance
filter is not described

attachment_fields_to_edit filter-hook . WP 2.5.0

Filters the attachment fields to edit.

Usage

add_filter( 'attachment_fields_to_edit', 'filter_function_name_3243', 10, 2 );
function filter_function_name_3243( $form_fields, $post ){
	// filter...

	return $form_fields;
}
$form_fields(array)
An array of attachment form fields.
$post(WP_Post)
The WP_Post attachment object.

Список изменений

С версии 2.5.0 Введена.

Где вызывается хук

get_attachment_fields_to_edit()
attachment_fields_to_edit
get_compat_media_markup()
attachment_fields_to_edit
wp-admin/includes/media.php 1473
$form_fields = apply_filters( 'attachment_fields_to_edit', $form_fields, $post );
wp-admin/includes/media.php 1899
$form_fields = apply_filters( 'attachment_fields_to_edit', $form_fields, $post );

Где используется хук в ядре WP

wp-admin/async-upload.php 67
add_filter( 'attachment_fields_to_edit', 'media_single_attachment_fields_to_edit', 10, 2 );
wp-admin/async-upload.php 77
add_filter( 'attachment_fields_to_edit', 'media_post_single_attachment_fields_to_edit', 10, 2 );
wp-admin/includes/media.php 2325
add_filter( 'attachment_fields_to_edit', 'media_post_single_attachment_fields_to_edit', 10, 2 );
wp-admin/includes/media.php 2549
<?php add_filter( 'attachment_fields_to_edit', 'media_post_single_attachment_fields_to_edit', 10, 2 ); ?>
wp-admin/includes/media.php 2855
<?php add_filter( 'attachment_fields_to_edit', 'media_post_single_attachment_fields_to_edit', 10, 2 ); ?>
wp-admin/media.php 76
add_filter( 'attachment_fields_to_edit', 'media_single_attachment_fields_to_edit', 10, 2 );