W3cubDocs

/WordPress

apply_filters( 'image_send_to_editor', string $html, int $id, string $caption, string $title, string $align, string $url, string|array $size, string $alt )

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

Parameters

$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.

Source

File: wp-admin/includes/media.php

View on Trac

Changelog

Version Description
2.5.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/image_send_to_editor