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



image_send_to_editor › Hooks de Filtros WordPress

Desde5.6.0
Obsoleton/a
› apply_filters( 'image_send_to_editor', $html, $id, $caption, $title, $align, $url, $size, $alt, $rel )
Parâmetros: (9)
  • () html The image HTML markup to send.
    Required: Yes
  • () id The attachment ID.
    Required: Yes
  • () caption The image caption.
    Required: Yes
  • () title The image title.
    Required: Yes
  • () align The image alignment.
    Required: Yes
  • () url The image source URL.
    Required: Yes
  • () size Requested image size. Can be any registered image size name, or an array of width and height values in pixels (in that order).
    Required: Yes
  • () alt The image alternative, or alt, text.
    Required: Yes
  • () rel The image rel attribute.
    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, $rel );