Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



image_send_to_editor ›

Seit2.5.0
Veraltetn/v
apply_filters( 'image_send_to_editor', $html, $id, $caption, $title, $align, $url, $size, $alt )
Parameter: (8)
  • (string) $html The image HTML markup to send.
    Erforderlich: Ja
  • (int) $id The attachment id.
    Erforderlich: Ja
  • (string) $caption The image caption.
    Erforderlich: Ja
  • (string) $title The image title.
    Erforderlich: Ja
  • (string) $align The image alignment.
    Erforderlich: Ja
  • (string) $url The image source URL.
    Erforderlich: Ja
  • (string|array) $size Size of image. Image size or array of width and height values (in that order). Default 'medium'.
    Erforderlich: Ja
  • (string) $alt The image alternative, or alt, text.
    Erforderlich: Ja
Definiert in:
Codex:

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





Quellcode

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