WordPress at a glance
filter is not described

wp_generate_attachment_metadata filter-hook . WP 1.0

This filter is documented in wp-admin/includes/image.php

Usage

add_filter( 'wp_generate_attachment_metadata', 'filter_function_name_9706', 10, 3 );
function filter_function_name_9706( $image_meta, $attachment_id, $string ){
	// filter...

	return $image_meta;
}
$image_meta
-
$attachment_id
-
$string
-

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

wp_update_image_subsizes()
wp_generate_attachment_metadata
wp_generate_attachment_metadata()
wp_generate_attachment_metadata
wp-admin/includes/image.php 175
$image_meta = apply_filters( 'wp_generate_attachment_metadata', $image_meta, $attachment_id, 'update' );
wp-admin/includes/image.php 631
return apply_filters( 'wp_generate_attachment_metadata', $metadata, $attachment_id, 'create' );

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

Использование не найдено.