WordPress at a glance
filter is not described

wp_insert_attachment_data filter-hook . WP 3.9.0

Filters attachment post data before it is updated in or added to the database.

Usage

add_filter( 'wp_insert_attachment_data', 'filter_function_name_1336', 10, 2 );
function filter_function_name_1336( $data, $postarr ){
	// filter...

	return $data;
}
$data(array)
An array of sanitized attachment post data.
$postarr(array)
An array of unsanitized attachment post data.

Where the hook is called

wp_insert_post()
wp_insert_attachment_data
wp-includes/post.php 3513
$data = apply_filters( 'wp_insert_attachment_data', $data, $postarr );

Where the hook is used (in WP core)

Does not used.