A WordPress-centric search engine for devs and theme authors



image_send_to_editor ›

Since2.5.0
Deprecatedn/a
apply_filters( 'image_send_to_editor', $html, $id, $caption, $title, $align, $url, $size, $alt )
Parameters: (8)
  • (string) $html The image HTML markup to send.
    Required: Yes
  • (int) $id The attachment id.
    Required: Yes
  • (string) $caption The image caption.
    Required: Yes
  • (string) $title The image title.
    Required: Yes
  • (string) $align The image alignment.
    Required: Yes
  • (string) $url The image source URL.
    Required: Yes
  • (string|array) $size Size of image. Image size or array of width and height values (in that order). Default 'medium'.
    Required: Yes
  • (string) $alt The image alternative, or alt, text.
    Required: Yes
Defined at:
Codex:

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





Source

$html = apply_filters( 'image_send_to_editor', $html, $id, $caption, $title, $align, $url, $size, $alt );