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_1626', 10, 8 );
function filter_function_name_1626( $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.

Список изменений

С версии 2.5.0 Введена.

Где вызывается хук

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

Где используется хук в ядре WordPress

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