Files
Filename | Hook Type | Line Number | PHP Doc |
---|---|---|---|
wp-admin/includes/media.php | apply_filters | 168 | /** * 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. */ |
Hook Parameters
Parameter 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 |
string | $alt | The image alternative, or alt, text. |
string | $rel | The image rel attribute. |