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.


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

	return $data;
An array of sanitized attachment post data.
An array of unsanitized attachment post data.

Where the hook is called

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

Where the hook is used (in WP core)

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