WordPress at a glance
filter is not described

wp_get_attachment_caption filter-hook . WP 4.6.0

Filters the attachment caption.


add_filter( 'wp_get_attachment_caption', 'filter_function_name_2794', 10, 2 );
function filter_function_name_2794( $caption, $post_id ){
	// filter...

	return $caption;
Caption for the given attachment.
Attachment ID.

Where the hook is called

wp-includes/post.php 5401
return apply_filters( 'wp_get_attachment_caption', $caption, $post->ID );

Where the hook is used (in WP core)

Does not used.