WordPress at a glance
filter is not described

get_attached_file filter-hook . WP 2.1.0

Filters the attached file based on the given ID.


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

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

Where the hook is called

wp-includes/post.php 405
return apply_filters( 'get_attached_file', $file, $attachment_id );

Where the hook is used (in WP core)

Does not used.