Summery Summery

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

Syntax Syntax

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

Parameters Parameters


(string) The image HTML markup to send.


(int) The attachment id.


(string) The image caption.


(string) The image title.


(string) The image alignment.


(string) The image source URL.


(string|array) Size of image. Image size or array of width and height values (in that order). Default 'medium'.


(string) The image alternative, or alt, text.

Source Source

File: wp-admin/includes/media.php


Changelog Changelog

Version Description
2.5.0 Introduced.


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.