WordPress at a glance
filter is not described

wp_get_attachment_link filter-hook . WP 2.7.0

Filters a retrieved attachment page link.

Usage

add_filter( 'wp_get_attachment_link', 'filter_function_name_5264', 10, 6 );
function filter_function_name_5264( $link_html, $id, $size, $permalink, $icon, $text ){
	// filter...

	return $link_html;
}
$link_html(string)
The page link HTML output.
$id(int)
Post ID.
$size(string/array)
Size of the image. Image size or array of width and height values (in that order).
Default: 'thumbnail'
$permalink(true/false)
Whether to add permalink to image.
Default: false
$icon(true/false)
Whether to include an icon.
Default: false
$text(string/true/false)
If string, will be link text.
Default: false

Where the hook is called

wp_get_attachment_link()
wp-includes/post-template.php 1551
return apply_filters( 'wp_get_attachment_link', "<a href='" . esc_url( $url ) . "'>$link_text</a>", $id, $size, $permalink, $icon, $text );

Where the hook is used (in WP core)

Does not used.