Uma área de pesquisa sobre o WordPress para devs e autores do tema



image_send_to_editor ›

Desde2.5.0
Obsoleton/a
apply_filters( 'image_send_to_editor', $html, $id, $caption, $title, $align, $url, $size, $alt )
Parâmetros: (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
Definido em:
Codex:

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





Fonte

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