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
-
$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|int[] -
Requested image size. Can be any registered image size name, or an array of width and height values in pixels (in that order).
-
$alt
string -
The image alternative, or alt, text.
-
$rel
string -
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 );
Changelog
Version | Description |
---|---|
5.6.0 | The $rel parameter was added. |
2.5.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.
Add custom field to media attachment image attribute in post editor