Filter hook 'image_send_to_editor'
in WP Core File wp-admin/includes/media.php at line 168
Description
Filters the image HTML markup to send to the editor when inserting an image.
Occurrences
Filename |
Line Number |
wp-admin/includes/media.php |
168 |
Parameters
Type |
Name |
Description |
string |
$html |
The image HTML markup to send. |
int |
$id |
The attachment ID. |
string |
$caption |
The image caption. |
string |
$title |
The image title. |
string |
$align |
The image alignment. |
string |
$url |
The image source URL. |
string|int[] |
$size |
Requested image size. Can be any registered image size name, or an array of width and height values in pixels (in that order). |
string |
$alt |
The image alternative, or alt, text. |
string |
$rel |
The image rel attribute. |
PHP Doc
/**
* Filters the image HTML markup to send to the editor when inserting an image.
*
* @since 2.5.0
* @since 5.6.0 The `$rel` parameter was added.
*
* @param string $html The image HTML markup to send.
* @param int $id The attachment ID.
* @param string $caption The image caption.
* @param string $title The image title.
* @param string $align The image alignment.
* @param string $url The image source URL.
* @param string|int[] $size Requested image size. Can be any registered image size name, or
* an array of width and height values in pixels (in that order).
* @param string $alt The image alternative, or alt, text.
* @param string $rel The image rel attribute.
*/