On this page
apply_filters( 'image_send_to_editor', string $html, int $id, string $caption, string $title, string $align, string $url, string|int[] $size, string $alt, string $rel )
Filters the image HTML markup to send to the editor when inserting an image.
Parameters
$htmlstring-
The image HTML markup to send.
$idint-
The attachment ID.
$captionstring-
The image caption.
$titlestring-
The image title.
$alignstring-
The image alignment.
$urlstring-
The image source URL.
$sizestring|int[]-
Requested image size. Can be any registered image size name, or an array of width and height values in pixels (in that order).
$altstring-
The image alternative, or alt, text.
$relstring-
The image rel attribute.
Source
File: wp-admin/includes/media.php. View all references
$html = apply_filters( 'image_send_to_editor', $html, $id, $caption, $title, $align, $url, $size, $alt, $rel );
Related
Used By
| Used By | Description |
|---|---|
| get_image_send_to_editor() wp-admin/includes/media.php | Retrieves the image HTML to send to the editor. |
Changelog
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/image_send_to_editor