WordPress at a glance
filter is not described

image_send_to_editor filter-hook . WP 2.5.0

Filters the image HTML markup to send to the editor when inserting an image.

Usage

add_filter( 'image_send_to_editor', 'filter_function_name_4242', 10, 8 );
function filter_function_name_4242( $html, $id, $caption, $title, $align, $url, $size, $alt ){
	// filter...

	return $html;
}
$html(string)
The image HTML markup to send.
$id(int)
The attachment id.
$caption(string)
The image caption.
$title(string)
The image title.
$align(string)
The image alignment.
$url(string)
The image source URL.
$size(string/array)
Size of image. Image size or array of width and height values (in that order).
Default: 'medium'
$alt(string)
The image alternative, or alt, text.

Where the hook is called

get_image_send_to_editor()
image_send_to_editor
wp-admin/includes/media.php 152
$html = apply_filters( 'image_send_to_editor', $html, $id, $caption, $title, $align, $url, $size, $alt );

Where the hook is used (in WP core)

wp-includes/default-filters.php 527
add_filter( 'image_send_to_editor', 'image_add_caption', 20, 8 );