WordPress at a glance
filter is not described

attachment_link filter-hook . WP 2.0.0

Filters the permalink for an attachment.

Usage

add_filter( 'attachment_link', 'filter_function_name_3247', 10, 2 );
function filter_function_name_3247( $link, $post_id ){
	// filter...

	return $link;
}
$link(string)
The attachment's permalink.
$post_id(int)
Attachment ID.

Changelog

Since 2.0.0 Introduced.

Where the hook is called

get_attachment_link()
attachment_link
wp-includes/link-template.php 457
return apply_filters( 'attachment_link', $link, $post->ID );

Where the hook is used (in WP core)

Usage not found!