get_image_send_to_editor ( $id, $caption, $title, $align, $url = '', $rel = false, $size = 'medium', $alt = '' )

  • (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.
  • (string) The HTML output to insert into the editor.
Defined at:


Retrieves the image HTML to send to the editor.

Related Functions

image_media_send_to_editor, media_send_to_editor, get_tags_to_edit, wp_get_image_editor, get_comment_to_edit

Top Google Results

User discussions

wpseek mobile