WordPress at Your Fingertips
filter is not described

update_attached_file filter-hook . WP 2.1.0

Filters the path to the attached file to update.


add_filter( 'update_attached_file', 'filter_function_name_7962', 10, 2 );
function filter_function_name_7962( $file, $attachment_id ){
	// filter...

	return $file;
Path to the attached file to update.
Attachment ID.

Where the hook is called

wp-includes/post.php 605
$file = apply_filters( 'update_attached_file', $file, $attachment_id );

Where in WP core the hook is used WordPress

Usage not found.