get_image_send_to_editor
get_image_send_to_editor ( $id, $caption, $title, $align, $url = '', $rel = false, $size = 'medium', $alt = '' )
Parameters:- (int) id Image attachment ID.
- (string) caption Image caption.
- (string) title Image title attribute.
- (string) align Image CSS alignment property.
- (string) url Optional. Image src URL. Default empty.
- (bool|string) rel Optional. Value for rel attribute or whether to add a default value. Default false.
- (string|int[]) size Optional. Image size. Accepts any registered image size name, or an array of width and height values in pixels (in that order). Default 'medium'.
- (string) alt Optional. Image alt attribute. Default empty.
Returns:- (string) The HTML output to insert into the editor.
Defined at: - Introduced in WordPress: 2.5.0
- Deprecated in WordPress: —
Description
Retrieves the image HTML to send to the editor.